StudE-Backend/stude/subjects/admin.py

13 lines
342 B
Python
Raw Normal View History

2023-06-27 18:15:31 +08:00
from django.contrib import admin
from .models import Subject, SubjectCourse, SubjectSemester, SubjectYearLevel
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(SubjectCourse)
admin.site.register(SubjectSemester)
admin.site.register(SubjectYearLevel)