Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django Admin Hide Superuser User #776

Open
chetan-pixel opened this issue Jan 29, 2021 · 1 comment
Open

Django Admin Hide Superuser User #776

chetan-pixel opened this issue Jan 29, 2021 · 1 comment

Comments

@chetan-pixel
Copy link

chetan-pixel commented Jan 29, 2021

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

@gamesbook
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants