##// END OF EJS Templates
Added thread autoupdate. Currently has some bugs, not ready for merge with the main branch
Added thread autoupdate. Currently has some bugs, not ready for merge with the main branch

File last commit:

r333:c4e2cbcd default
r361:001d821b thread_autoupdate
Show More
admin.py
25 lines | 561 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', 'tags')
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)