65
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)
6
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)
- [Django]-What does "'tests' module incorrectly imported" mean?
- [Django]-How to launch tests for django reusable app?
- [Django]-How to make Django's DateTimeField optional?
Source:stackexchange.com