There's a solution referred here:
http://stackoverflow.com/questions/1160030/how-to-make-email-field-unique-in-model-user-from-contrib-auth-in-django

This solution basically override the *clean_email* method of the UserForm,
and check if the email is unique, raising an error if it's not.
But I rather stick with the custom user model, cleaner. Any reason why you
wouldn't like to create the custom user model?
Em Mon Jan 26 2015 at 6:03:54 PM, Bruce Li <[email protected]> escreveu:

> Hi,
>
> I'm using django's default auth settings in my app. All I want is to make
> email unique for each user. Is it possible to do that without creating a
> custom user model and user manager?
>
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 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-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1a71b204-c675-494a-a9de-ca496a5015a1%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1a71b204-c675-494a-a9de-ca496a5015a1%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 users" 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-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACPst9%2BqE%2B%2BL0G%3DFizR42nEMBFbyzuLgVbML3ZOPnWgPmYwZ6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to