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)