Django admin login

You need to:

  • Create your “UserAdmin” class inheriting from the system’s UserAdmin class (django.contrib.auth.admin.UserAdmin)
  • Unregister the default User admin registration
  • Register your new UserAdmin class for the User model
1 Like