Show More
@@ -37,10 +37,11 b' class ThreadAdmin(admin.ModelAdmin):' | |||||
37 | list_display = ('id', 'title', 'reply_count', 'archived', 'ip') |
|
37 | list_display = ('id', 'title', 'reply_count', 'archived', 'ip') | |
38 | list_filter = ('bump_time', 'archived', 'bumpable') |
|
38 | list_filter = ('bump_time', 'archived', 'bumpable') | |
39 | search_fields = ('id', 'title') |
|
39 | search_fields = ('id', 'title') | |
|
40 | filter_horizontal = ('tags',) | |||
40 |
|
41 | |||
41 |
|
42 | |||
42 | @admin.register(Ban) |
|
43 | @admin.register(Ban) | |
43 | class BanAdmin(admin.ModelAdmin): |
|
44 | class BanAdmin(admin.ModelAdmin): | |
44 | list_display = ('ip', 'can_read') |
|
45 | list_display = ('ip', 'can_read') | |
45 | list_filter = ('can_read',) |
|
46 | list_filter = ('can_read',) | |
46 | search_fields = ('ip',) No newline at end of file |
|
47 | search_fields = ('ip',) |
General Comments 0
You need to be logged in to leave comments.
Login now