From 5fa30b7e3aafb8c8b8da351f47608f182c8376b7 Mon Sep 17 00:00:00 2001 From: d42 Date: Wed, 10 Oct 2018 21:18:25 +0200 Subject: [PATCH] unregister social admin views --- storage/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/storage/admin.py b/storage/admin.py index 29098a4..144d32c 100644 --- a/storage/admin.py +++ b/storage/admin.py @@ -3,6 +3,7 @@ from django.contrib import admin from django_select2.forms import ModelSelect2Widget, Select2MultipleWidget + from .models import Item, ItemImage, Category, Label from .widgets import ItemSelectWidget, PropsSelectWidget @@ -91,3 +92,8 @@ User.add_to_class('get_full_name', User.get_username) admin.site.unregister(User) admin.site.unregister(Group) + +from social_django.admin import UserSocialAuth, Nonce, Association +admin.site.unregister(UserSocialAuth) +admin.site.unregister(Nonce) +admin.site.unregister(Association)