Disable User & Group admin

This commit is contained in:
Piotr Dobrowolski 2018-04-28 00:32:45 +02:00
parent 8538821c24
commit a9a1e77d91
1 changed files with 6 additions and 0 deletions

View File

@ -72,3 +72,9 @@ class ItemAdmin(admin.ModelAdmin):
admin.site.register(Item, ItemAdmin) admin.site.register(Item, ItemAdmin)
admin.site.register(Category) admin.site.register(Category)
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
admin.site.unregister(User)
admin.site.unregister(Group)