X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/5acb6fe123f2007fcb19e1f70dec854e516aaad3..23413a0b52e37e35ee5e4f2d1f7a729f4b872bb4:/apps/quiz/models.py diff --git a/apps/quiz/models.py b/apps/quiz/models.py index ccde81e..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 _ @@ -7,6 +11,7 @@ from django.conf import settings class Quiz(Site): description = models.TextField() + footer = models.TextField(null=True, blank=True) class Meta: verbose_name = _('quiz') @@ -40,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