Avoid a dropdown for course runs
Entitlement detail pages in django admin normally show a dropdown button for the enrollment_course_run field. But on stage, that can cause a timeout because the enrollment database is so large. So instead, just show it as a raw id field.
This commit is contained in:
committed by
Michael LoTurco
parent
b177f3daab
commit
f7237cf659
@@ -14,6 +14,7 @@ class CourseEntitlementAdmin(admin.ModelAdmin):
|
||||
'mode',
|
||||
'enrollment_course_run',
|
||||
'order_number')
|
||||
raw_id_fields = ('enrollment_course_run', 'user',)
|
||||
|
||||
|
||||
@admin.register(CourseEntitlementPolicy)
|
||||
|
||||
Reference in New Issue
Block a user