From 5532ee7745e7cbf96c7f2927961adf3a2430da13 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Sat, 21 Jan 2017 01:06:35 -0800 Subject: [PATCH] clean up townie admin some --- ttadmin/users/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ttadmin/users/admin.py b/ttadmin/users/admin.py index 899e6a0..5be424b 100644 --- a/ttadmin/users/admin.py +++ b/ttadmin/users/admin.py @@ -9,6 +9,7 @@ admin.site.unregister(Group) class PubkeyInline(admin.TabularInline): model = Pubkey + extra = 1 def bulk_review(madmin, req, qs): for townie in qs: @@ -20,6 +21,7 @@ bulk_review.short_description = 'mark selected townies as reviewed' @admin.register(Townie) class TownieAdmin(admin.ModelAdmin): inlines = [PubkeyInline] - list_display = ('reviewed', 'username', 'email') + list_display = ('username', 'reviewed', 'email') ordering = ('reviewed',) + exclude = ('first_name', 'last_name', 'password', 'groups', 'user_permissions', 'last_login') actions = (bulk_review,)