Show More
@@ -13,10 +13,11 b' class TagAdmin(admin.ModelAdmin):' | |||||
13 |
|
13 | |||
14 | list_display = ('name',) |
|
14 | list_display = ('name',) | |
15 |
|
15 | |||
|
16 | ||||
16 | class ThreadAdmin(admin.ModelAdmin): |
|
17 | class ThreadAdmin(admin.ModelAdmin): | |
17 |
|
18 | |||
18 | def title(self, obj): |
|
19 | def title(self, obj): | |
19 | return obj.get_opening_post().title |
|
20 | return obj.get_opening_post().get_title() | |
20 |
|
21 | |||
21 | def reply_count(self, obj): |
|
22 | def reply_count(self, obj): | |
22 | return obj.get_reply_count() |
|
23 | return obj.get_reply_count() | |
@@ -25,6 +26,7 b' class ThreadAdmin(admin.ModelAdmin):' | |||||
25 | list_filter = ('bump_time', 'archived') |
|
26 | list_filter = ('bump_time', 'archived') | |
26 | search_fields = ('id', 'title') |
|
27 | search_fields = ('id', 'title') | |
27 |
|
28 | |||
|
29 | ||||
28 | class BanAdmin(admin.ModelAdmin): |
|
30 | class BanAdmin(admin.ModelAdmin): | |
29 | list_display = ('ip', 'can_read') |
|
31 | list_display = ('ip', 'can_read') | |
30 | list_filter = ('can_read',) |
|
32 | list_filter = ('can_read',) |
General Comments 0
You need to be logged in to leave comments.
Login now