Browse Source

Sestupné řazení čísel a ročníků.

remotes/origin/feincms deploy-test-2015-06-08-19-34-gavento
Jan Musílek 9 years ago
parent
commit
010580648a
  1. 4
      seminar/models.py

4
seminar/models.py

@ -197,7 +197,7 @@ class Rocnik(SeminarModelBase):
db_table = 'seminar_rocniky' db_table = 'seminar_rocniky'
verbose_name = u'Ročník' verbose_name = u'Ročník'
verbose_name_plural = u'Ročníky' verbose_name_plural = u'Ročníky'
ordering = ['rocnik'] ordering = ['-rocnik']
# Interní ID # Interní ID
id = models.AutoField(primary_key = True) id = models.AutoField(primary_key = True)
@ -253,7 +253,7 @@ class Cislo(SeminarModelBase):
db_table = 'seminar_cisla' db_table = 'seminar_cisla'
verbose_name = u'Číslo' verbose_name = u'Číslo'
verbose_name_plural = u'Čísla' verbose_name_plural = u'Čísla'
ordering = ['rocnik__rocnik', 'cislo'] ordering = ['-rocnik__rocnik', '-cislo']
# Interní ID # Interní ID
id = models.AutoField(primary_key = True) id = models.AutoField(primary_key = True)

Loading…
Cancel
Save