X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/2c2b8f122dd789a089ac5054e112f59874c01a70..954dc6262de4eb9e84ae2e81cbd28cd536b569bd:/apps/quiz/models.py?ds=inline diff --git a/apps/quiz/models.py b/apps/quiz/models.py index 92955fa..9043b74 100644 --- a/apps/quiz/models.py +++ b/apps/quiz/models.py @@ -6,8 +6,9 @@ from django.conf import settings class Quiz(Site): + description = models.TextField() + class Meta: - proxy=True verbose_name = _('quiz') verbose_name_plural = _('quizzes') @@ -39,6 +40,7 @@ class Result(models.Model): class Meta: verbose_name = _('result') verbose_name_plural = _('results') + ordering = ['quiz', 'title'] def __unicode__(self): return self.title