I propose adding a check on UserCreationForm (used by the admin). The current implementation relies on the model fields unique=True check which is case-sensitive (except on mysql).
Whenever I've made a login form, I've always used or made a copy of or at least studied UserCreationForm. I think if we had a nice walk through of how to create your own form which included the iexact hint, I think that would also help solve this problem. On Sun, Aug 30, 2015 at 6:43 AM, Florian Apolloner <[email protected]> wrote: > > > On Saturday, August 29, 2015 at 9:59:30 PM UTC+2, Tim Graham wrote: >> >> The suggested change is to not allow a new user if there's a >> username__iexact match. >> > > Yes, but as change to what? To the admin interface? this will only cover > admin usage. To a full_clean of the user model [This is often not used > anyways]? I am somewhat against that… > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/650405a3-c860-4d84-be94-5b6a6c779aa2%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/650405a3-c860-4d84-be94-5b6a6c779aa2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFO84S6yF4dyY8ZiLwDu5D_0ffT6Qe%3D1NoRMwD1GccsNtPc4qw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
