Unverified Commit 02ddf4d3 by Sven Marnach Committed by GitHub

Merge pull request #16166 from open-craft/smarnach/filter-course-enrollment-allowed

Add search box to CourseEnrollmentAllowed admin interface.
parents bb9e5922 17194ae0
......@@ -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)
......
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