X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/5acb6fe123f2007fcb19e1f70dec854e516aaad3..4fd65015efdd36e431d97f7de13dbb94e1c389fa:/apps/quiz/admin.py?ds=sidebyside diff --git a/apps/quiz/admin.py b/apps/quiz/admin.py index ddc66d4..ce56cc8 100644 --- a/apps/quiz/admin.py +++ b/apps/quiz/admin.py @@ -14,6 +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(Quiz) +admin.site.register(Result, ResultAdmin) +admin.site.register(Quiz, QuizAdmin)