thanks page and email for sciezki-kopernika
[edumed.git] / catalogue / admin.py
1 # -*- coding: utf-8 -*-
2 from django.contrib import admin
3 from .models import Attachment, Section, Lesson, LessonStub
4
5
6 class AttachmentInline(admin.TabularInline):
7     model = Attachment
8
9
10 class LessonAdmin(admin.ModelAdmin):
11     inlines = [AttachmentInline]
12     list_display = ['title', 'section', 'type']
13     list_filter = ['level', 'type']
14
15 admin.site.register(Section)
16 admin.site.register(Lesson, LessonAdmin)
17 admin.site.register(LessonStub)