Sestupné řazení čísel a ročníků.
This commit is contained in:
parent
9df07538bf
commit
010580648a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue