Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django admin page Removing 'Group'

Tags:

django

Use the unregister method :

Add to the admin.py file :

from django.contrib import admin
from django.contrib.auth.models import Group

admin.site.unregister(Group)

You need to check the order of INSTALLED_APPS in settings.py. Basically, your app should be listed after the django.contrib.auth.

Use the following code to unregister the Group inside admin.py file of your app:

from django.contrib.auth.models import User

admin.site.unregister(Group)