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