[Fixed]-Customizing Django user model to take into account DB non-null marks

1👍

There is no need to do anything. EmailFields are stored as varchars, and are set to empty strings rather than null when blank.

If you want to make it required on the form, then do so in that __init__ method:

self.fields['email'].required = True

Leave a comment