--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
I haven't used django-registration, but many others have, so maybe they'll be able to answer. On face-value, I'd say that your question is a bit off, though; django-registration doesn't replace the contrib.auth system. It just provides a way for you to create a user-friendly registration system for your users, but it still uses contrib.auth on the backend.
Shawn
Shawn
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
However, on the front end you can certainly override the clean() methods of your fields, and gracefully handle checking of duplicates and user-friendly error messages. I know you like the DB constraints because it's a best-practice, but if no other software will be accessing your database then this is all you'll need.
For your two questions:
You don't need to remove the username from the ModelForm -- just don't include it in the template.
Override the default template (copy the default template and modify your changed version).
To change the label on the template, you can change the 'label' property of the field in your subclassed ModelForm.
Something like this (in the __init__, after calling the __init__ of super():
self.fields['username'].label = 'E-mail Address'
Shawn
Shawn
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.