File size: 575 Bytes
013c0dc 669c0b8 977aa4a 013c0dc 1dbd98a f243d4f 1dbd98a f243d4f 1dbd98a f243d4f 07bbfbd 1dbd98a 07bbfbd 1dbd98a f243d4f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from django.contrib import admin
from .models import FreeTextAnswer, LLMGradedAnswer, MultipleChoiceAnswer, Question, Quiz
admin.site.register(Quiz)
class FreeTextAnswerInline(admin.StackedInline):
model = FreeTextAnswer
class MultipleChoiceAnswerInline(admin.StackedInline):
model = MultipleChoiceAnswer
class LLMGradedAnswerInline(admin.StackedInline):
model = LLMGradedAnswer
class QuestionAdmin(admin.ModelAdmin):
inlines = [FreeTextAnswerInline, MultipleChoiceAnswerInline, LLMGradedAnswerInline]
admin.site.register(Question, QuestionAdmin)
|