Skip to content

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

Use decimal quantity for error message

Anna Siwikbb4cce2ff3f8
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.py
index 465a6b30ce..554386acca 100644
--- a/saleor/dashboard/order/forms.py
+++ b/saleor/dashboard/order/forms.py
@@ -379,7 +379,7 @@ class AddDeliveryGroupItemForm(forms.Form):
pgettext_lazy(
'Add item form error',
'Could not add item. '
- 'Only %(remaining).2f remaining in stock.' %
+ 'Only %(remaining)d remaining in stock.' %
{'remaining': e.item.get_stock_quantity()}))
self.add_error('quantity', error)
return cleaned_data