From 8e3d5511e292cf380c5147ef7f169f8eda24e597 Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Fri, 29 Nov 2024 13:18:09 +0100 Subject: [PATCH] Make the test case happy --- src/pretix/base/forms/questions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/forms/questions.py b/src/pretix/base/forms/questions.py index cd88d05a60..6fbe9b77d1 100644 --- a/src/pretix/base/forms/questions.py +++ b/src/pretix/base/forms/questions.py @@ -1150,7 +1150,7 @@ class BaseInvoiceAddressForm(forms.ModelForm): data['vat_id'] = '' if self.event.settings.invoice_address_required: if data.get('is_business') and not data.get('company'): - raise ValidationError(_('You need to provide a company name.')) + raise ValidationError({"company": _('You need to provide a company name.')}) if not data.get('is_business') and not data.get('name_parts'): raise ValidationError(_('You need to provide your name.'))