fixed validation

This commit is contained in:
Oliver Zander 2025-11-11 09:47:51 +01:00 committed by Tobias Herre
parent 6932b9413c
commit 7fd35636b1
1 changed files with 1 additions and 1 deletions

View File

@ -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