X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/2c2b8f122dd789a089ac5054e112f59874c01a70..4fd65015efdd36e431d97f7de13dbb94e1c389fa:/apps/quiz/models.py 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