Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Reformat error message

Artur Smęt6a09f2baec38
diff --git a/saleor/dashboard/discount/forms.py b/saleor/dashboard/discount/forms.py
index 956723347b..02d136dd93 100644
--- a/saleor/dashboard/discount/forms.py
+++ b/saleor/dashboard/discount/forms.py
@@ -16,7 +16,7 @@ class DiscountForm(forms.ModelForm):
discount_type = cleaned_data['type']
value = cleaned_data['value']
if discount_type == Discount.PERCENTAGE and value > 100:
- self.add_error('value', pgettext_lazy('discount error',
- 'Percentage discount '
- 'cannot be higher than 100%'))
+ self.add_error('value', pgettext_lazy(
+ 'discount error',
+ 'Discount cannot exceed 100%'))
return cleaned_data