From 010580648a7134a20b77451fcd6711f46f4e7208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mus=C3=ADlek?= Date: Sat, 6 Jun 2015 21:38:53 +0200 Subject: [PATCH] =?UTF-8?q?Sestupn=C3=A9=20=C5=99azen=C3=AD=20=C4=8D=C3=AD?= =?UTF-8?q?sel=20a=20ro=C4=8Dn=C3=ADk=C5=AF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/models.py b/seminar/models.py index 9be4a1b8..62529835 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -197,7 +197,7 @@ class Rocnik(SeminarModelBase): db_table = 'seminar_rocniky' verbose_name = u'Ročník' verbose_name_plural = u'Ročníky' - ordering = ['rocnik'] + ordering = ['-rocnik'] # Interní ID id = models.AutoField(primary_key = True) @@ -253,7 +253,7 @@ class Cislo(SeminarModelBase): db_table = 'seminar_cisla' verbose_name = u'Číslo' verbose_name_plural = u'Čísla' - ordering = ['rocnik__rocnik', 'cislo'] + ordering = ['-rocnik__rocnik', '-cislo'] # Interní ID id = models.AutoField(primary_key = True)