##// END OF EJS Templates
Added test for all views get requests. Fixed banned view failing this test
Added test for all views get requests. Fixed banned view failing this test

File last commit:

r540:e47cc30d default
r545:9c27ae2e 1.7-dev
Show More
admin.py
26 lines | 600 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')
search_fields = ('user_id',)
admin.site.register(Post, PostAdmin)
admin.site.register(Tag, TagAdmin)
admin.site.register(User, UserAdmin)
admin.site.register(Ban)