From ac6768017a27189b92721a15181de8f8b0dfa278 Mon Sep 17 00:00:00 2001 From: "matteo.cafarotti" Date: Fri, 10 Oct 2014 12:50:58 +0200 Subject: [PATCH] fixes search for Answer into admin section --- questionnaire/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questionnaire/admin.py b/questionnaire/admin.py index 1216add..7060208 100644 --- a/questionnaire/admin.py +++ b/questionnaire/admin.py @@ -61,7 +61,7 @@ class RunInfoHistoryAdmin(admin.ModelAdmin): pass class AnswerAdmin(admin.ModelAdmin): - search_fields = ['subject', 'runid', 'question', 'answer'] + search_fields = ['subject__email', 'runid', 'question__number', 'answer'] list_display = ['runid', 'subject', 'question'] list_filter = ['subject', 'runid'] ordering = [ 'subject', 'runid', 'question', ]