X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/5acb6fe123f2007fcb19e1f70dec854e516aaad3..875547b2d9b5abfddb9858a3550921362112d864:/apps/quiz/admin.py diff --git a/apps/quiz/admin.py b/apps/quiz/admin.py index ddc66d4..6a2137c 100644 --- a/apps/quiz/admin.py +++ b/apps/quiz/admin.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# This file is part of KOED-Quiz, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.contrib import admin from quiz.models import Quiz, Question, Result, Answer @@ -14,6 +18,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)