diff gpp/potd/admin.py @ 535:4021ea1045f7

Adding import commands for the 1.0 POTD & comments.
author Brian Neal <bgneal@gmail.com>
date Sat, 31 Dec 2011 21:34:17 +0000
parents 3c951521e0ec
children
line wrap: on
line diff
--- a/gpp/potd/admin.py	Tue Dec 27 01:15:27 2011 +0000
+++ b/gpp/potd/admin.py	Sat Dec 31 21:34:17 2011 +0000
@@ -13,10 +13,11 @@
 
 
 class PhotoAdmin(admin.ModelAdmin):
-    fields = ('photo', 'caption', 'description', 'user', 'potd_count')
-    raw_id_fields = ('user', )
-    list_display = ('__unicode__', 'thumbnail')
-    actions = ('regen_thumbnail', )
+    fields = ['photo', 'caption', 'description', 'user', 'potd_count']
+    raw_id_fields = ['user']
+    list_display = ['__unicode__', 'thumbnail']
+    actions = ['regen_thumbnail']
+    search_fields = ['caption', 'description']
 
     class Media:
         js = settings.GPP_THIRD_PARTY_JS['tiny_mce']