34

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.

twampss
  • 1,287
  • 2
  • 12
  • 13

1 Answers1

73

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)
dting
  • 38,604
  • 10
  • 95
  • 114