From fa0638aeb5dc509cd85e4b67ec92bea825f02c46 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Sun, 5 Sep 2021 22:16:26 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20St=C3=A1t=20Jin=C3=A9=20v=20registraci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/forms.py b/seminar/forms.py index 1a83cb82..bfee9fdd 100644 --- a/seminar/forms.py +++ b/seminar/forms.py @@ -123,7 +123,7 @@ class PrihlaskaForm(PasswordResetForm): err_logger = logging.getLogger('seminar.prihlaska.problem') data = self.cleaned_data - if data.get('stat') != '' and data.get('stat_text') != '': + if data.get('stat') != 'other' and data.get('stat_text') != '': self.add_error('stat',forms.ValidationError('Nelze mít vybraný stát z menu a zároven zapsaný textem')) if data.get('skola') and (data.get('skola_nazev') or data.get('skola_adresa')): self.add_error('skola',forms.ValidationError('Pokud je škola v seznamu, nevypisujte ji ručně, pokud není, zrušte výběr ze seznamu (křížek vpravo)'))