vcp-elearning/tkupek_elearning/elearning/admin.py

16 lines
327 B
Python
Raw Normal View History

2016-01-31 16:17:37 +01:00
from django.contrib import admin
2016-01-31 18:19:45 +01:00
from tkupek_elearning.elearning.models import Option, Setting, Question
2016-01-31 16:17:37 +01:00
2016-01-31 18:19:45 +01:00
class OptionInline(admin.TabularInline):
model = Option
class QuestionAdmin(admin.ModelAdmin):
inlines = [
OptionInline,
]
admin.site.register(Question, QuestionAdmin)
admin.site.register(Setting)