Open chetan-pixel opened 3 years ago
I have 2 superusers in my django admin site. I want to do that second superadmin and other staff members cant see me in the list of users.
Django Admin Hide A User Whose username = chetan I am using 3.13 version of django.
I got answer at this link but it didnt worked at all. https://stackoverflow.com/questions/44229058/django-is-there-any-way-to-hide-superusers-from-the-user-list
Suggest you override the default Manager for the users (assuming you are using a CustomUser class): https://docs.djangoproject.com/en/3.1/topics/db/managers/#default-managers
I have 2 superusers in my django admin site. I want to do that second superadmin and other staff members cant see me in the list of users.
Django Admin Hide A User Whose username = chetan I am using 3.13 version of django.
I got answer at this link but it didnt worked at all. https://stackoverflow.com/questions/44229058/django-is-there-any-way-to-hide-superusers-from-the-user-list