Django Admin comes with some Models registerd by default. There a some occasions where you might want to remove a Model from the admin pages.
This is done in the admin
submodule. If your app wass created using manage.py startapp
, the admin.py
file should already lay in your app module. Otherwise create it.
#myapp/admin.py
from django.contrib import admin
from django.contrib.auth.models import User
admin.site.unregister(User)