X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/2c2b8f122dd789a089ac5054e112f59874c01a70..23413a0b52e37e35ee5e4f2d1f7a729f4b872bb4:/apps/quiz/models.py?ds=sidebyside diff --git a/apps/quiz/models.py b/apps/quiz/models.py index 92955fa..b5e588d 100644 --- a/apps/quiz/models.py +++ b/apps/quiz/models.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.db import models from django.contrib.sites.models import Site from django.utils.translation import ugettext_lazy as _ @@ -6,8 +10,10 @@ from django.conf import settings class Quiz(Site): + description = models.TextField() + footer = models.TextField(null=True, blank=True) + class Meta: - proxy=True verbose_name = _('quiz') verbose_name_plural = _('quizzes') @@ -39,6 +45,7 @@ class Result(models.Model): class Meta: verbose_name = _('result') verbose_name_plural = _('results') + ordering = ['quiz', 'title'] def __unicode__(self): return self.title