This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Your admin must also inherit from Django default `UserAdmin`, if you want to save | |
your time from all the hassle of creating some methods they have already created. | |
Now you can edit user admin the way you want by also getting advantage of all the | |
existing admin features. | |
""" | |
from django.contrib.auth import get_user_model | |
from django.contrib.auth.admin import UserAdmin as OrigUserAdmin |