use street instead of city as indicator whether address is filled

This commit is contained in:
Mira Weller
2024-11-25 21:46:48 +01:00
parent 04884ce874
commit 47ec03baac

View File

@@ -951,7 +951,7 @@ class BaseQuestionsForm(forms.Form):
if self.address_validation:
self.cleaned_data = d = validate_address(d, all_optional=not self.attendee_addresses_required)
if d.get('city') and d.get('country') and str(d['country']) in COUNTRIES_WITH_STATE_IN_ADDRESS:
if d.get('street') and d.get('country') and str(d['country']) in COUNTRIES_WITH_STATE_IN_ADDRESS:
if not d.get('state'):
self.add_error('state', _('This field is required.'))