Commit c0ead35d by Dillon-Dumesnil Committed by GitHub

Merge pull request #131 from edx/ddumesnil/django_admin_search

Added in search functionality for courses and course-runs on the djan…
parents 8442638b ec09b752
......@@ -21,6 +21,7 @@ class CourseAdmin(admin.ModelAdmin):
inlines = (CourseOrganizationInline,)
list_display = ('key', 'title',)
ordering = ('key', 'title',)
search_fields = ('key', 'title',)
@admin.register(CourseRun)
......@@ -28,6 +29,7 @@ class CourseRunAdmin(admin.ModelAdmin):
inlines = (SeatInline,)
list_display = ('key', 'title',)
ordering = ('key',)
search_fields = ('key', 'title_override', 'course__title',)
class KeyNameAdmin(admin.ModelAdmin):
......
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