On Thu, Feb 27, 2014 at 8:31 AM, Curtis Maloney
<[email protected]>wrote:

> Doesn't the UserManager already have a "normalize_email" method which
> lower-cases the domain and leaves the mailbox name alone?
>
> IMHO It's "proper" to leave it this way by default, and probably mention
> in the docs it's used so if you want to change it, that's the hook.
>

It does - assuming you use User.objects.create_user() to create all your
users. However, the UserCreationForm doesn't use this (and hasn't ever used
this); it also doesn't account for fixtures, or any other path into the
database that might exist.

So - while normalising case is probably a good idea, and should probably be
added to the Create/Update User form, the searches will still need to be
case insensitive.

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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/CAJxq84_1%2B_oVDUAeHyXoFGTirsZEgejaY6q4hNK0EZGpqS96Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to