|
|
@ -119,8 +119,6 @@ class PrihlaskaForm(PasswordResetForm): |
|
|
|
err_logger = logging.getLogger('seminar.prihlaska.problem') |
|
|
|
|
|
|
|
data = self.cleaned_data |
|
|
|
if data.get('password') != data.get('password_check'): |
|
|
|
self.add_error('password_check',forms.ValidationError('Hesla se neshodují')) |
|
|
|
if data.get('stat') != '' 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')): |
|
|
|