mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 14:29:25 +08:00
10 lines
216 B
Python
10 lines
216 B
Python
from django.contrib import admin
|
|
from courses.models import Course
|
|
from .models import Subject
|
|
|
|
|
|
class SubjectAdmin(admin.ModelAdmin):
|
|
filter_horizontal = ['courses']
|
|
|
|
|
|
admin.site.register(Subject, SubjectAdmin)
|