From e63e186db220a8fb24f2b7ce83807b54964a9cdc Mon Sep 17 00:00:00 2001 From: gfawcett Date: Sat, 16 Apr 2011 19:02:05 +0000 Subject: [PATCH] more djadmin tweaks git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1374 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/syrup/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conifer/syrup/admin.py b/conifer/syrup/admin.py index 693d32a..608c0ec 100644 --- a/conifer/syrup/admin.py +++ b/conifer/syrup/admin.py @@ -9,6 +9,7 @@ Config, Z3950Target]: admin.site.register(m) class ItemAdmin(admin.ModelAdmin): + search_fields = ['title', 'barcode', 'bib_id'] model = Item admin.site.register(Item, ItemAdmin) @@ -20,6 +21,8 @@ class MembershipAdminForm(forms.ModelForm): model = Membership class MembershipAdmin(admin.ModelAdmin): + search_fields = ['user__username', 'group__external_id', + 'group__site__course__code'] form = MembershipAdminForm admin.site.register(Membership, MembershipAdmin) -- 2.11.0