|
|
|
@ -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')
|
|
|
|
|