From 84850e1a84257f017496bd94ee61ba7cd1f9c8da Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Fri, 10 Nov 2017 15:00:22 -0800 Subject: [PATCH] show authz stuff in admin --- ttadmin/users/admin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ttadmin/users/admin.py b/ttadmin/users/admin.py index 2ff3ce9..29259b2 100644 --- a/ttadmin/users/admin.py +++ b/ttadmin/users/admin.py @@ -4,9 +4,6 @@ from django.contrib.auth.models import Group from .models import Townie, Pubkey -admin.site.unregister(User) -admin.site.unregister(Group) - class PubkeyInline(admin.TabularInline): model = Pubkey extra = 1 @@ -23,6 +20,6 @@ class TownieAdmin(admin.ModelAdmin): inlines = [PubkeyInline] list_display = ('username', 'reviewed', 'email') ordering = ('reviewed',) - exclude = ('first_name', 'last_name', 'password', 'groups', 'user_permissions', 'last_login') + exclude = ('first_name', 'last_name', 'password', 'groups', 'user_permissions', 'last_login', 'is_staff', 'is_active', 'is_superuser') actions = (bulk_review,) search_fields = ('username', 'email', 'displayname')