fixes search for Answer into admin section

EmailTemplateFixes
matteo.cafarotti 2014-10-10 12:50:58 +02:00
parent ad19e90d43
commit ac6768017a
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class RunInfoHistoryAdmin(admin.ModelAdmin):
pass pass
class AnswerAdmin(admin.ModelAdmin): class AnswerAdmin(admin.ModelAdmin):
search_fields = ['subject', 'runid', 'question', 'answer'] search_fields = ['subject__email', 'runid', 'question__number', 'answer']
list_display = ['runid', 'subject', 'question'] list_display = ['runid', 'subject', 'question']
list_filter = ['subject', 'runid'] list_filter = ['subject', 'runid']
ordering = [ 'subject', 'runid', 'question', ] ordering = [ 'subject', 'runid', 'question', ]