When creating/adding a user with Django admin; how can this be customized?
For example, currently, the username and password are prompted for. However, I'd like to customize this to also have other required fields, such as 'email'?
The Django tutorial isn't clear on admin user auth customization?
Place this in your models.py
.
from django.contrib.auth.models import User
User._meta.get_field('email').blank = False
Run makemigrations
.
Run migrate
.
See the documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With