[open-ils-commits] r1374 - servres/trunk/conifer/syrup (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Apr 16 15:02:09 EDT 2011
Author: gfawcett
Date: 2011-04-16 15:02:05 -0400 (Sat, 16 Apr 2011)
New Revision: 1374
Modified:
servres/trunk/conifer/syrup/admin.py
Log:
more djadmin tweaks
Modified: servres/trunk/conifer/syrup/admin.py
===================================================================
--- servres/trunk/conifer/syrup/admin.py 2011-04-16 19:02:02 UTC (rev 1373)
+++ servres/trunk/conifer/syrup/admin.py 2011-04-16 19:02:05 UTC (rev 1374)
@@ -9,6 +9,7 @@
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 @@
model = Membership
class MembershipAdmin(admin.ModelAdmin):
+ search_fields = ['user__username', 'group__external_id',
+ 'group__site__course__code']
form = MembershipAdminForm
admin.site.register(Membership, MembershipAdmin)
More information about the open-ils-commits
mailing list