I’m trying to make sure that the first name and last name field are not optional for the auth User model but I’m not sure how to change it. I can’t use a sub class as I have to use the authentication system.
Two solutions I can think of are:
- to put the name in the user profile but it’s a little silly to have a field that I can’t use correctly.
- To validate in the form rather than in the model. I don’t think this really fits with Django’s philosophy…
For some reason I can’t seem to find a way to do this online so any help is appreciated. I would have thought that this would be a popular question.
Cheers,
Durand
I would definitely go with validating on the form. You could even go as far as having more form validation in the admin if you felt like it.