Skip to content

Commit

Permalink
fix: performance issue with coursestaffrole admin (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharis278 authored Dec 21, 2023
1 parent aefc160 commit 5ddae41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edx_exams/apps/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def get_exam_name(self, obj):
@admin.register(CourseStaffRole)
class CourseStaffRoleAdmin(admin.ModelAdmin):
""" Admin configuration for the Course Staff Role model """
raw_id_fields = ('user',)
list_display = ('user', 'course_id')
list_filter = ('course_id',)
search_fields = ('user__username', 'course_id')
Expand Down

0 comments on commit 5ddae41

Please sign in to comment.