From cbc00169a5c976a4648b83aa516ff8447a73a797 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Wed, 7 Oct 2015 17:49:33 +0200 Subject: [PATCH] Chyba odchycena tak, aby pri tom nedoslo k chybe --- seminar/autocomplete_light_registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seminar/autocomplete_light_registry.py b/seminar/autocomplete_light_registry.py index d83c681e..c7762054 100644 --- a/seminar/autocomplete_light_registry.py +++ b/seminar/autocomplete_light_registry.py @@ -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)