1 from django.contrib import admin
2 from .models import Attachment, Section, Lesson
4 class AttachmentInline(admin.TabularInline):
7 class LessonAdmin(admin.ModelAdmin):
8 inlines = [AttachmentInline]
10 admin.site.register(Section)
11 admin.site.register(Lesson, LessonAdmin)