StudE-Backend/stude/subjects/admin.py

12 lines
342 B
Python

from django.contrib import admin
from .models import Subject, SubjectCourse, SubjectSemester, SubjectYearLevel
class SubjectAdmin(admin.ModelAdmin):
filter_horizontal = ['courses']
admin.site.register(Subject, SubjectAdmin)
admin.site.register(SubjectCourse)
admin.site.register(SubjectSemester)
admin.site.register(SubjectYearLevel)