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 LevelAdmin(admin.ModelAdmin):
model = Level
- list_display = ['name', 'slug', 'order']
+ list_display = ['name', 'group', 'slug', 'order']
class SectionAdmin(admin.ModelAdmin):
model = Section
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)