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')