Filter by lawyer.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Wed, 27 Nov 2013 10:34:13 +0000 (11:34 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Wed, 27 Nov 2013 10:34:13 +0000 (11:34 +0100)
questions/admin.py

index 0f1c343..11eedc4 100755 (executable)
@@ -3,7 +3,7 @@ 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')