From b0f0292c62b30b756ea8e2be5c4d0f536f10510b Mon Sep 17 00:00:00 2001 From: bettleChen <2207153529@qq.com> Date: Wed, 13 Sep 2023 16:39:14 +0800 Subject: [PATCH] add javascript file --- EduSystemServer/course/admin.py | 1 + 1 file changed, 1 insertion(+) 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')