Closed stonefullstm closed 1 week ago
You'll need to register your user model with the admin site.
https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-users-and-django-contrib-admin
You will also need to register your custom user model with the admin.
...
However, if your user model extends AbstractBaseUser, you’ll need to define a custom ModelAdmin class.
Since we inherit from AbstractBaseUser
, you'll need to take that into account.
This would be a great documentation add as we don't have anything around this!
Thank you very much for the guidance
When AUTH_USER_MODEL is a custom model, features are lost in admin panel and I am not able create users or modify passwords using admin page as the passwords are not hashed. Does anyone suggest something?