Merge branch 'autocomplete'

This commit is contained in:
Bc. Petr Pecha 2015-10-07 17:50:29 +02:00
commit a928ee3efb

View file

@ -81,7 +81,8 @@ class ProblemAutocomplete(autocomplete_light.AutocompleteModelBase):
try:
popisek = u"%s (%s, %s.%s)" % (p.nazev, p.typ, p.cislo_zadani.rocnik.rocnik, p.kod_v_rocniku())
except:
popisek = u"%s (%s, %s.%s)" % (p.nazev, p.typ, p.stav)
#popisek = u"%s (%s, %s.%s)" % (p.nazev, p.typ, p.stav)
popisek = "CHYBA"
return popisek
else:
return u"%s (%s, %s)" % (p.nazev, p.typ, p.stav)