Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide Auth section in Django Admin [duplicate]

In the Django Admin, is there any way to hide the "Auth" section? Assuming this is a clean installation of Django and barebones project with no apps, only admin.

like image 296
twampss Avatar asked Apr 01 '11 03:04

twampss


1 Answers

You can use admin.site.unregister

from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.contrib.auth.models import Group  admin.site.unregister(User) admin.site.unregister(Group) admin.site.unregister(Site) 
like image 98
dting Avatar answered Oct 08 '22 13:10

dting