Hi, I'm looking for the right way to add custom constraints on some fields in the User model provided by django.contrib.auth. I'm not only talking about form validation, but also database constraints (for instance, unique).
Basically what I want to do is make the field "email" mandatory and unique, how can I code that? I was able to implement such "custom constraints" using pre_save signal or a Proxy model, but I'm not really sure that either of those implementations are a good choice. Nicolas -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.