X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/cd8813f7be8e11b18b7e23d217dd6404e26d07d4..eb1f06b045e9fe8915411ae58b718991cfa69508:/curriculum/admin.py?ds=inline diff --git a/curriculum/admin.py b/curriculum/admin.py index d825e6f..4e83537 100755 --- a/curriculum/admin.py +++ b/curriculum/admin.py @@ -1,23 +1,28 @@ 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 class CompetenceAdmin(admin.ModelAdmin): model = Competence - list_display = ['name', 'section', 'slug', 'order'] + list_display = ['name_pl', 'name_en', 'section', 'slug', 'order'] inlines = [CompetenceLevelInline] class LevelAdmin(admin.ModelAdmin): model = Level - list_display = ['name', 'group', 'slug', 'order'] + list_display = ['name_pl', 'name_en', 'group_pl', 'group_en', 'slug', 'order'] class SectionAdmin(admin.ModelAdmin): model = Section - list_display = ['name', 'slug', 'order'] + list_display = ['name_pl', 'name_en', 'slug', 'order'] 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)