Commit 45bbc2da by Calen Pennington

Allow searching by course_id in the schedules django admin page

parent 98233c0a
...@@ -14,7 +14,7 @@ class ScheduleAdmin(admin.ModelAdmin): ...@@ -14,7 +14,7 @@ class ScheduleAdmin(admin.ModelAdmin):
list_display = ('username', 'course_id', 'active', 'start', 'upgrade_deadline') list_display = ('username', 'course_id', 'active', 'start', 'upgrade_deadline')
raw_id_fields = ('enrollment',) raw_id_fields = ('enrollment',)
readonly_fields = ('modified',) readonly_fields = ('modified',)
search_fields = ('enrollment__user__username', 'enrollment__course_id',) search_fields = ('enrollment__user__username', 'enrollment__course__id',)
inlines = (ScheduleExperienceAdminInline,) inlines = (ScheduleExperienceAdminInline,)
def username(self, obj): def username(self, obj):
......
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