comparison gpp/bio/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 8c1832b9d815
children 69d0306a6fe7
comparison
equal deleted inserted replaced
276:8a46843c258f 277:d424b8bae71d
19 class UserProfileAdmin(admin.ModelAdmin): 19 class UserProfileAdmin(admin.ModelAdmin):
20 search_fields = ('user__username', 'user__first_name', 'user__last_name', 20 search_fields = ('user__username', 'user__first_name', 'user__last_name',
21 'user__email') 21 'user__email')
22 exclude = ('profile_html', 'signature_html') 22 exclude = ('profile_html', 'signature_html')
23 list_display = ('__unicode__', 'user_is_active', 'get_status_display', 'status_date') 23 list_display = ('__unicode__', 'user_is_active', 'get_status_display', 'status_date')
24 readonly_fields = ('status', 'status_date') 24 readonly_fields = ('status', 'status_date', 'update_date')
25 list_filter = ('status', ) 25 list_filter = ('status', )
26 date_hierarchy = 'status_date' 26 date_hierarchy = 'status_date'
27 inlines = (BadgeOwnerInline, ) 27 inlines = (BadgeOwnerInline, )
28 actions = ( 28 actions = (
29 'mark_active', 29 'mark_active',