add materials to lesson pack
[edumed.git] / catalogue / admin.py
1 from django.contrib import admin
2 from .models import Attachment, Section, Lesson
3
4 class AttachmentInline(admin.TabularInline):
5     model = Attachment
6
7 class LessonAdmin(admin.ModelAdmin):
8     inlines = [AttachmentInline]
9     list_display = ['title', 'section', 'type']
10
11 admin.site.register(Section)
12 admin.site.register(Lesson, LessonAdmin)