From 59248bd07d717dafd562ddf1d9624910970d3330 Mon Sep 17 00:00:00 2001 From: Andromeda Yelton Date: Mon, 6 May 2013 15:41:45 -0400 Subject: [PATCH] improving admin page interfaces --- admin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin.py b/admin.py index d3775f16..c8aa671e 100644 --- a/admin.py +++ b/admin.py @@ -22,9 +22,11 @@ class RegluitAdmin(AdminSite): login_template = 'registration/login.html' class UserAdmin(ModelAdmin): - pass + search_fields = ['username', 'email'] + list_display = ('username', 'email') class ClaimAdmin(ModelAdmin): + list_display = ('work', 'rights_holder', 'status') date_hierarchy = 'created' class RightsHolderAdmin(ModelAdmin): @@ -34,10 +36,12 @@ class PremiumAdmin(ModelAdmin): date_hierarchy = 'created' class CampaignAdmin(ModelAdmin): + list_display = ('work', 'created', 'status') date_hierarchy = 'created' + search_fields = ['work'] class WorkAdmin(ModelAdmin): - search_fields = ('title',) + search_fields = ['title'] ordering = ('title',) list_display = ('title', 'created') date_hierarchy = 'created'