Verified Commit 59631ea9 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix search_fields in education app

parent 44ca1d67
......@@ -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