From a9a1e77d91da5a7cec9968e9af52a10acfe95514 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Sat, 28 Apr 2018 00:32:45 +0200 Subject: [PATCH] Disable User & Group admin --- storage/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/storage/admin.py b/storage/admin.py index 09ae407..13c297a 100644 --- a/storage/admin.py +++ b/storage/admin.py @@ -72,3 +72,9 @@ class ItemAdmin(admin.ModelAdmin): admin.site.register(Item, ItemAdmin) 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)