From 17194ae0601f2ba5c9eb444689f4f875f8ec992d Mon Sep 17 00:00:00 2001 From: Sven Marnach Date: Wed, 4 Oct 2017 17:23:40 +0200 Subject: [PATCH] Add search box to CourseEnrollmentAllowed admin interface. --- common/djangoapps/student/admin.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/student/admin.py b/common/djangoapps/student/admin.py index 561121c8e2..2e3b2c32b9 100644 --- a/common/djangoapps/student/admin.py +++ b/common/djangoapps/student/admin.py @@ -197,8 +197,17 @@ class UserAttributeAdmin(admin.ModelAdmin): model = UserAttribute +@admin.register(CourseEnrollmentAllowed) +class CourseEnrollmentAllowedAdmin(admin.ModelAdmin): + """ Admin interface for the CourseEnrollmentAllowed model. """ + list_display = ('email', 'course_id', 'auto_enroll',) + search_fields = ('email', 'course_id',) + + class Meta(object): + model = CourseEnrollmentAllowed + + admin.site.register(UserTestGroup) -admin.site.register(CourseEnrollmentAllowed) admin.site.register(Registration) admin.site.register(PendingNameChange) admin.site.register(DashboardConfiguration, ConfigurationModelAdmin)