fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
question fix
[koed-quiz.git]
/
apps
/
quiz
/
admin.py
diff --git
a/apps/quiz/admin.py
b/apps/quiz/admin.py
index
ddc66d4
..
ce56cc8
100644
(file)
--- a/
apps/quiz/admin.py
+++ b/
apps/quiz/admin.py
@@
-14,6
+14,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(Quiz)
+admin.site.register(Result
, ResultAdmin
)
+admin.site.register(Quiz
, QuizAdmin
)