From 21b66be1da9ca138d9801cb2051ced5310aeabc0 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Sun, 7 Jun 2015 08:07:07 +0200 Subject: [PATCH 1/2] Oprava predchozi --- seminar/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/models.py b/seminar/models.py index 62529835..e6a92d4f 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -296,7 +296,7 @@ class Cislo(SeminarModelBase): def predchozi(self): u"Vrací None, pokud je toto první" - return self.relativni_v_rocniku(1) + return self.relativni_v_rocniku(-1) def relativni_v_rocniku(self, rel_index): u"Číslo o `index` dále v ročníku. None pokud neexistuje." From 062b1790ecf1786a97696344968576faf3fa52b9 Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Sun, 7 Jun 2015 08:21:27 +0200 Subject: [PATCH 2/2] Oprava popisku v autocomplete --- seminar/autocomplete_light_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/autocomplete_light_registry.py b/seminar/autocomplete_light_registry.py index 0b40dbcf..c82ba213 100644 --- a/seminar/autocomplete_light_registry.py +++ b/seminar/autocomplete_light_registry.py @@ -83,7 +83,7 @@ class ProblemAutocomplete(autocomplete_light.AutocompleteModelBase): attrs={ # This will set the input placeholder attribute: - 'placeholder': u'Řešitel', + 'placeholder': u'Problém', # This will set the yourlabs.Autocomplete.minimumCharacters # options, the naming conversion is handled by jQuery 'data-autocomplete-minimum-characters': 1,