django-suit icon indicating copy to clipboard operation
django-suit copied to clipboard

Django Admin Hide Superuser User

Open chetan-pixel opened this issue 4 years ago • 1 comments

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

chetan-pixel avatar Jan 29 '21 05:01 chetan-pixel

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

gamesbook avatar Jan 29 '21 09:01 gamesbook