summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2018-04-28 00:32:45 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2018-04-28 00:32:45 +0200
commita9a1e77d91da5a7cec9968e9af52a10acfe95514 (patch)
tree1b84733cb4a5fdb5101f72b32f8c02e635f7a10a
parent8538821c2481a9101e9e9e29058dac6f1770bb22 (diff)
downloadspejstore-a9a1e77d91da5a7cec9968e9af52a10acfe95514.tar.gz
spejstore-a9a1e77d91da5a7cec9968e9af52a10acfe95514.tar.bz2
spejstore-a9a1e77d91da5a7cec9968e9af52a10acfe95514.zip
Disable User & Group admin
-rw-r--r--storage/admin.py6
1 files changed, 6 insertions, 0 deletions
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)