mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
13 lines
394 B
Python
13 lines
394 B
Python
from django.contrib import admin
|
|
from .models import Subject, SubjectStudent, SubjectCourse, SubjectSemester, SubjectYearLevel
|
|
|
|
|
|
class SubjectAdmin(admin.ModelAdmin):
|
|
filter_horizontal = ['courses']
|
|
|
|
|
|
admin.site.register(Subject, SubjectAdmin)
|
|
admin.site.register(SubjectStudent)
|
|
admin.site.register(SubjectCourse)
|
|
admin.site.register(SubjectSemester)
|
|
admin.site.register(SubjectYearLevel)
|