comparison bio/admin.py @ 1035:eeaf387803c6

Remove usages of @models.permalink.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Dec 2015 21:33:55 -0600
parents 6a06080e7ca8
children
comparison
equal deleted inserted replaced
1034:2f36abf65a62 1035:eeaf387803c6
18 extra = 1 18 extra = 1
19 19
20 20
21 class UserProfileAdmin(admin.ModelAdmin): 21 class UserProfileAdmin(admin.ModelAdmin):
22 search_fields = ['user__username', 'user__first_name', 'user__last_name', 22 search_fields = ['user__username', 'user__first_name', 'user__last_name',
23 'user__email'] 23 'user__email']
24 exclude = ['profile_html', 'signature_html'] 24 exclude = ['profile_html', 'signature_html']
25 list_display = ['__unicode__', 'user_is_active', 'get_status_display', 'status_date'] 25 list_display = ['__unicode__', 'user_is_active', 'get_status_display',
26 'status_date']
26 readonly_fields = ['status', 'status_date', 'update_date'] 27 readonly_fields = ['status', 'status_date', 'update_date']
27 list_filter = ['status', ] 28 list_filter = ['status', ]
28 date_hierarchy = 'status_date' 29 date_hierarchy = 'status_date'
29 inlines = [BadgeOwnerInline, ] 30 inlines = [BadgeOwnerInline, ]
30 actions = [ 31 actions = [