Domů => vyplněná adresa
This commit is contained in:
parent
4d9623d83e
commit
f5ac7e3aa5
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue