##// END OF EJS Templates
Readded post cache
Readded post cache

File last commit:

r333:c4e2cbcd default
r394:f878102e default
Show More
admin.py
25 lines | 561 B | text/x-python | PythonLexer
neko259
Initial commit. One test doesn't work, missing posting form.
r0 from django.contrib import admin
neko259
Merged with default branch
r137 from boards.models import Post, Tag, User, Ban
neko259
Initial commit. One test doesn't work, missing posting form.
r0
neko259
Moved some settings to boards.settings
r333
neko259
Added a better admin interface.
r305 class PostAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'text')
neko259
Do not filter posts by poster IP cause the list is too big
r307 list_filter = ('pub_time', 'tags')
neko259
Added a better admin interface.
r305 search_fields = ('id', 'title', 'text')
neko259
Moved some settings to boards.settings
r333
neko259
Added a better admin interface.
r305 class TagAdmin(admin.ModelAdmin):
list_display = ('name', 'linked')
list_filter = ('linked',)
class UserAdmin(admin.ModelAdmin):
list_display = ('user_id', 'rank')
admin.site.register(Post, PostAdmin)
admin.site.register(Tag, TagAdmin)
admin.site.register(User, UserAdmin)
neko259
Merged with default branch
r137 admin.site.register(Ban)