diff gpp/downloads/admin.py @ 277:d424b8bae71d

Fixing #128 and #129. Add elsewhere weblinks to search content. Add support for haystack's get_update_field() method.
author Brian Neal <bgneal@gmail.com>
date Sat, 02 Oct 2010 23:24:39 +0000
parents 27bee3ac85e6
children 6144023ebea8
line wrap: on
line diff
--- a/gpp/downloads/admin.py	Thu Sep 30 00:06:04 2010 +0000
+++ b/gpp/downloads/admin.py	Sat Oct 02 23:24:39 2010 +0000
@@ -24,6 +24,7 @@
     list_display = ('title', 'user', 'category', 'date_added', 'ip_address', 'size')
     ordering = ('date_added', )
     raw_id_fields = ('user', )
+    readonly_fields = ('update_date', )
 
     actions = ('approve_downloads', )
 
@@ -61,6 +62,7 @@
     ordering = ('-date_added', )
     search_fields = ('title', 'description', 'user__username')
     raw_id_fields = ('user', )
+    readonly_fields = ('update_date', )
     save_on_top = True