fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Django 1.7
[koed-quiz.git]
/
apps
/
quiz
/
admin.py
diff --git
a/apps/quiz/admin.py
b/apps/quiz/admin.py
index
849f918
..
6a2137c
100644
(file)
--- a/
apps/quiz/admin.py
+++ b/
apps/quiz/admin.py
@@
-1,6
+1,10
@@
+# -*- 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 django.contrib import admin
-from quiz.models import Question, Result, Answer
+from quiz.models import Qu
iz, Qu
estion, Result, Answer
class AnswerInline(admin.TabularInline):
class AnswerInline(admin.TabularInline):
@@
-14,5
+18,15
@@
class QuestionAdmin(admin.ModelAdmin):
list_display = ['title', 'quiz']
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(Question, QuestionAdmin)
-admin.site.register(Result)
+admin.site.register(Result, ResultAdmin)
+admin.site.register(Quiz, QuizAdmin)