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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With