SQL fix.
[prawokultury.git] / questions / admin.py
index 9db5ff7..11eedc4 100755 (executable)
@@ -1,9 +1,9 @@
 from django.contrib import admin
 from django.contrib import admin
-from .models import Question
+from .models import Question, Tag, TagCategory
 
 class QuestionAdmin(admin.ModelAdmin):
     model = Question
 
 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')
     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',
         'approved',
         'edited_question',
         'answer',
+        'answered_by',
         'tags',
         ('answered', 'answered_at'),
         ('published', 'published_at'),
         'tags',
         ('answered', 'answered_at'),
         ('published', 'published_at'),
@@ -22,3 +23,5 @@ class QuestionAdmin(admin.ModelAdmin):
 
 
 admin.site.register(Question, QuestionAdmin)
 
 
 admin.site.register(Question, QuestionAdmin)
+admin.site.register(Tag)
+admin.site.register(TagCategory)