StudE-Backend/stude/subjects/admin.py

12 lines
284 B
Python
Raw Normal View History

2023-06-27 18:15:31 +08:00
from django.contrib import admin
from .models import Subject, SubjectStudent, SubjectCourse
2023-06-27 18:15:31 +08:00
2023-06-27 18:42:34 +08:00
class SubjectAdmin(admin.ModelAdmin):
filter_horizontal = ['courses']
admin.site.register(Subject, SubjectAdmin)
admin.site.register(SubjectStudent)
admin.site.register(SubjectCourse)