X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/2c2b8f122dd789a089ac5054e112f59874c01a70..7c0b069529d4c0ebe9c398ac733b445ff24495ad:/apps/quiz/admin.py diff --git a/apps/quiz/admin.py b/apps/quiz/admin.py index 849f918..ce56cc8 100644 --- a/apps/quiz/admin.py +++ b/apps/quiz/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin -from quiz.models import Question, Result, Answer +from quiz.models import Quiz, Question, Result, Answer class AnswerInline(admin.TabularInline): @@ -14,5 +14,15 @@ class QuestionAdmin(admin.ModelAdmin): list_display = ['title', 'quiz'] +class ResultAdmin(admin.ModelAdmin): + list_display = ['title', 'quiz'] + + +class QuizAdmin(admin.ModelAdmin): + list_display = ['name'] + + + admin.site.register(Question, QuestionAdmin) -admin.site.register(Result) +admin.site.register(Result, ResultAdmin) +admin.site.register(Quiz, QuizAdmin)