id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 21735,username field uniqueness check should be optional,Chris Jerdonek,nobody,"Currently, Django doesn't let you have a username field with `unique=False`. This limitation was imposed recently in issue #19822. I think this limitation should be lifted. In my use case, email address is the username field, and I would like a user account to be considered active only after the signup has been validated via email. To handle this use case, it is natural to add the account info to the user table when someone tries to sign up, and then activate that row only when the user clicks the corresponding validation link. This is essentially what [https://django-registration.readthedocs.org django-registration] does in its two-phase registration workflow, with minor variations. However, with this use case, there are edge cases where the same email address can exist unregistered in the database more than once. Instead, with this process the unique index should be on a pair of columns to enforce the fact that each email address should be in the database only once -- when restricted to __active__ user accounts. ",Bug,closed,Core (Management commands),1.6,Normal,duplicate,,chris.jerdonek@…,Unreviewed,0,0,0,0,0,0