|
|
@ -20,6 +20,7 @@ class CourseAdmin(admin.ModelAdmin):
|
|
|
|
'''按发布日期排序'''
|
|
|
|
'''按发布日期排序'''
|
|
|
|
ordering = ('-credit',)
|
|
|
|
ordering = ('-credit',)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
search_fields = ('name', 'type', 'credit', "tid")
|
|
|
|
|
|
|
|
|
|
|
|
class ScAdmin(admin.ModelAdmin):
|
|
|
|
class ScAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('student_name', 'course_name', 'middle_grade', 'end_grade')
|
|
|
|
list_display = ('student_name', 'course_name', 'middle_grade', 'end_grade')
|
|
|
|