X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e76fdcf2a2488b1787c74fe8dccfa38d7ac04c84..b027d39e2082ec3244fcd05eb0264fdfc13d9f19:/curriculum/admin.py?ds=sidebyside diff --git a/curriculum/admin.py b/curriculum/admin.py index 8d30cf2..275baf8 100755 --- a/curriculum/admin.py +++ b/curriculum/admin.py @@ -1,5 +1,6 @@ from django.contrib import admin -from .models import Competence, CompetenceLevel, Level, Section +from .models import (Competence, CompetenceLevel, Level, Section, + CurriculumCourse, CurriculumLevel, Curriculum) class CompetenceLevelInline(admin.TabularInline): model = CompetenceLevel @@ -11,7 +12,7 @@ class CompetenceAdmin(admin.ModelAdmin): class LevelAdmin(admin.ModelAdmin): model = Level - list_display = ['name', 'slug', 'order'] + list_display = ['name', 'group', 'slug', 'order'] class SectionAdmin(admin.ModelAdmin): model = Section @@ -21,3 +22,7 @@ class SectionAdmin(admin.ModelAdmin): admin.site.register(Level, LevelAdmin) admin.site.register(Section, SectionAdmin) admin.site.register(Competence, CompetenceAdmin) + +admin.site.register(CurriculumCourse) +admin.site.register(CurriculumLevel) +admin.site.register(Curriculum)