X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/5fc3b1a4a446715d859440b474ae206ff672b4cd..14425cbf8199fa9edbad4fab49eb8a79b7eeadd0:/questions/admin.py?ds=sidebyside diff --git a/questions/admin.py b/questions/admin.py index ec6d715..11eedc4 100755 --- a/questions/admin.py +++ b/questions/admin.py @@ -1,9 +1,9 @@ from django.contrib import admin -from .models import Question, Tag +from .models import Question, Tag, TagCategory class QuestionAdmin(admin.ModelAdmin): model = Question - list_filter = ('approved', 'answered', 'published') + list_filter = ('approved', 'answered', 'published', 'answered_by') list_display = ('question', 'email', 'created_at', 'approved', 'answered', 'published') date_hierarchy = 'created_at' search_fields = ('question', 'edited_question', 'answer', 'email') @@ -13,6 +13,7 @@ class QuestionAdmin(admin.ModelAdmin): 'approved', 'edited_question', 'answer', + 'answered_by', 'tags', ('answered', 'answered_at'), ('published', 'published_at'), @@ -23,3 +24,4 @@ class QuestionAdmin(admin.ModelAdmin): admin.site.register(Question, QuestionAdmin) admin.site.register(Tag) +admin.site.register(TagCategory)