I need to patch the standard User model of
contrib.auth by ensuring the email field entry is unique:
User._meta.fields.unique = True
Where is best place in code to do that?
I want to avoid using the number fields. It's better to user fields['email'], but fields is not dictionary, only list.
Another idea may be to open a new ticket and upload a patch with new parameter inside
AUTH_USER_EMAIL_UNIQUE = True
Any suggestions on the most correct way to achieve email address uniqueness in the Django User model?