I need to make the email field in the Django User model mandatory. It isn't obvious to me how to do that. Suggestions welcome. I am currently using:
from django.contrib.auth.forms import UserCreationForm
for my User creation form, and combining this with my own custom UserProfileCreateForm
Ian
use
EmailField
in your modelsee more at https://docs.djangoproject.com/en/2.1/ref/models/fields/#emailfield
You should be able subclass the provided registration form and override properties of a field in the
Meta
class.