forked from beba/foerderbarometer
fixed validation
This commit is contained in:
parent
f9898ee9b5
commit
85cb2368cc
|
|
@ -295,7 +295,7 @@ class LiteratureForm(TermsForm):
|
|||
return cleaned_data
|
||||
|
||||
for field in 'selfbuy_data', 'selfbuy_give_data':
|
||||
if not cleaned_data.get('selfbuy_data'):
|
||||
if not cleaned_data.get(field):
|
||||
self.add_error(field, trans('This field is required.'))
|
||||
|
||||
return cleaned_data
|
||||
|
|
|
|||
Loading…
Reference in New Issue