|
@ -105,6 +105,12 @@ class PrihlaskaForm(PasswordResetForm): |
|
|
pass |
|
|
pass |
|
|
return email |
|
|
return email |
|
|
|
|
|
|
|
|
|
|
|
def clean_zasilat(self): |
|
|
|
|
|
zasilat = self.cleaned_data.get('zasilat') |
|
|
|
|
|
ulice = self.cleaned_data.get('ulice') |
|
|
|
|
|
if zasilat == Resitel.ZASILAT_DOMU and ulice == "": |
|
|
|
|
|
raise forms.ValidationError('Nevyplněná adresa bydliště, nelze zasílat čísla domů.') |
|
|
|
|
|
return zasilat |
|
|
|
|
|
|
|
|
def clean(self): |
|
|
def clean(self): |
|
|
super().clean() |
|
|
super().clean() |
|
|