Commit c06a64ed by Clinton Blackburn

Added search to course admin view

Admin users can now search for courses by ID or name.
parent 127d83b6
...@@ -7,6 +7,7 @@ from ecommerce.courses.models import Course ...@@ -7,6 +7,7 @@ from ecommerce.courses.models import Course
class CourseAdmin(SimpleHistoryAdmin): class CourseAdmin(SimpleHistoryAdmin):
list_display = ('id', 'name',) list_display = ('id', 'name',)
search_fields = ('id', 'name',)
def get_urls(self): def get_urls(self):
"""Returns the additional urls used by the Reversion admin.""" """Returns the additional urls used by the Reversion admin."""
......
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