Skip to content

Commit

Permalink
fix: course enrollment admin popup search course
Browse files Browse the repository at this point in the history
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
  • Loading branch information
igobranco committed Sep 13, 2023
1 parent 4c5c6bd commit a432348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nau_openedx_extensions/student/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a432348

Please sign in to comment.