diff --git a/EduSystemServer/course/admin.py b/EduSystemServer/course/admin.py index b84a80a..0df0f99 100644 --- a/EduSystemServer/course/admin.py +++ b/EduSystemServer/course/admin.py @@ -20,6 +20,7 @@ class CourseAdmin(admin.ModelAdmin): '''按发布日期排序''' ordering = ('-credit',) + search_fields = ('name', 'type', 'credit', "tid") class ScAdmin(admin.ModelAdmin): list_display = ('student_name', 'course_name', 'middle_grade', 'end_grade')