3 ms·
It's not terribly straight forward to do this, depending on which apps you may use. E.g. django-registration or even django.contrib.admin. Username is hard code
by Nagyman 14y ago
It's not terribly straight forward to do this, depending on which apps you may use. E.g. django-registration or even django.contrib.admin. Username is hard coded in many places. It will get there, but apps have some work to do.
- kmfrk 14y agoI think you can just override the default clean_username() in RegistrationForm: https://bitbucket.org/ubernostrum/django-registration/src/27bccd108cdef30dc0a91ed1968be17bb1e60da4/registration/forms.py?at=default#cl-45 https://bitbucket.org/ubernostrum/django-registration/src/27... Looks like that's the only place that enforces duplicate usernames.