##// END OF EJS Templates
Fixed threads list RSS
Fixed threads list RSS

File last commit:

r398:b2448061 default
r419:4e6774d5 default
Show More
admin.py
25 lines | 567 B | text/x-python | PythonLexer
from django.contrib import admin
from boards.models import Post, Tag, User, Ban
class PostAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'text')
list_filter = ('pub_time', 'thread_new')
search_fields = ('id', 'title', 'text')
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)
admin.site.register(Ban)