Django admin page Removing 'Group'

How do I delete the model groups admin page? I want to show that by default, the group model. Thank you very much in advance.

Answers


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 can try this also:

Add to the admin.py file

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

admin.site.unregister(auth.models.Group)

Need Your Help

What does "Program type already present" mean?

android android-studio gradle

I'm trying to build an app in Android Studio. After adding the Eclipse Paho library as a gradle dependency(or is it Maven? I'm new to the Android ecosystem), I got the following error:

How to prevent concurrent execution of a job in Grails?

grails quartz-scheduler

I have a quartz job in grails, that needs to be executed in every 5s, but I need this sequentially. In some situations the execution of the job exceeds this 5s, in this case I dont't want to be exe...