##// END OF EJS Templates
Cosmetic changes to the admin models
neko259 -
r883:e01941af default
parent child Browse files
Show More
@@ -13,10 +13,11 b' class TagAdmin(admin.ModelAdmin):'
13 13
14 14 list_display = ('name',)
15 15
16
16 17 class ThreadAdmin(admin.ModelAdmin):
17 18
18 19 def title(self, obj):
19 return obj.get_opening_post().title
20 return obj.get_opening_post().get_title()
20 21
21 22 def reply_count(self, obj):
22 23 return obj.get_reply_count()
@@ -25,6 +26,7 b' class ThreadAdmin(admin.ModelAdmin):'
25 26 list_filter = ('bump_time', 'archived')
26 27 search_fields = ('id', 'title')
27 28
29
28 30 class BanAdmin(admin.ModelAdmin):
29 31 list_display = ('ip', 'can_read')
30 32 list_filter = ('can_read',)
General Comments 0
You need to be logged in to leave comments. Login now