Thanks for the feedback guys..

What I ended up doing was adding the following lines to my models module:

from django.contrib.auth.models import User as BaseUser

BaseUser._meta.get_field("username")._unique = False
BaseUser._meta.get_field("email").null = True

Melvin: I tried your suggestion and it worked like a charm for the email 
field. However, it didn't work for the username. I'm assuming that ORM 
introspection during syncdb doesn't use an instantiated model and as such, 
the "UNIQUE" attribute was still applied to the auth User model. Doing it 
this way allows me to override the default behavior during database 
creation.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/QOjT9MzLOrEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to