43488ce97ba45a6f3165b29321b0a51af829225b
[edumed.git] / catalogue / admin.py
1 from django.contrib import admin
2 from .models import Attachment, Section, Lesson, LessonStub
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)
13 admin.site.register(LessonStub)
14