Commit 72ae13b4 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'fix/education-search' into 'master'

Fix search_fields in education app

Closes #359

See merge request !416
parents 320ed980 59631ea9
......@@ -24,7 +24,8 @@ class ExamAdmin(TranslatedModelAdmin):
list_display = ('type', 'course', 'exam_date', 'uploader',
'accepted')
list_filter = ('accepted', 'exam_date', 'type',)
search_fields = ('course', 'uploader',)
search_fields = ('name', 'uploader__first_name', 'uploader__last_name',
'course__name_nl', 'course__name_en',)
actions = ['accept', 'reject']
def accept(self, request, queryset):
......@@ -42,7 +43,8 @@ class ExamAdmin(TranslatedModelAdmin):
class SummaryAdmin(TranslatedModelAdmin):
list_display = ('name', 'course', 'uploader', 'accepted')
list_filter = ('accepted',)
search_fields = ('name', 'course', 'uploader',)
search_fields = ('name', 'uploader__first_name', 'uploader__last_name',
'course__name_nl', 'course__name_en',)
actions = ['accept', 'reject']
def accept(self, request, queryset):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment