diff gpp/weblinks/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 7e8d2dda99e3
children 701730b2fcda
line wrap: on
line diff
--- a/gpp/weblinks/admin.py	Thu Sep 30 00:06:04 2010 +0000
+++ b/gpp/weblinks/admin.py	Sat Oct 02 23:24:39 2010 +0000
@@ -18,6 +18,7 @@
     list_display = ('title', 'url', 'user', 'category', 'date_added')
     raw_id_fields = ('user', )
     actions = ('approve_links', )
+    readonly_fields = ('update_date', )
 
     def approve_links(self, request, qs):
         for pending_link in qs:
@@ -42,6 +43,7 @@
     ordering = ('-date_added', )
     search_fields = ('title', 'description', 'url', 'user__username')
     raw_id_fields = ('user', )
+    readonly_fields = ('update_date', )
     save_on_top = True