From 927eb4f5707907bf1d9c3bafbd6351869e509758 Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Wed, 13 Sep 2023 12:48:43 +0100 Subject: [PATCH] fix: course enrollment admin popup search course The course enrollment create django admin screen with a popup search course. That make it more easy to search and find the correct course. GN-1234 --- nau_openedx_extensions/student/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nau_openedx_extensions/student/admin.py b/nau_openedx_extensions/student/admin.py index d8912e8..5eea9f2 100644 --- a/nau_openedx_extensions/student/admin.py +++ b/nau_openedx_extensions/student/admin.py @@ -71,7 +71,7 @@ class NAUCourseEnrollmentAdmin(DisableEnrollmentAdminMixin, admin.ModelAdmin): """ list_display = ('id', 'user', 'email', 'course_id', 'mode', 'is_active',) list_filter = ('mode', 'is_active',) - raw_id_fields = ('user',) + raw_id_fields = ('user', 'course') search_fields = ('user__username', 'user__email') form = CourseEnrollmentForm search_help_text = "Search by user username or email"