fixed validation

This commit is contained in:
Oliver Zander 2025-11-11 09:47:51 +01:00 committed by Tobias Herre
parent f9898ee9b5
commit 85cb2368cc
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