django In the project , When we create user Model class , And generate a super administrator , Then we go to admin In the background page , Add a user , Go again login Page login , Will remind us Wrong user name or password .
At this time , The first time we think about going to the database , You will find , The password of the new user we created is clear text , The passwords passed on our landing page are encrypted , Of course, this is not right .
stay app In the catalog admin.py It is not possible to simply register model classes in , We also need to import UserAdmin, Create a new class inheritance UserAdmin, And add the content we want to display in the new class .