StudE-Backend/stude/subjects/admin.py

11 lines
216 B
Python
Raw Normal View History

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