Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use decimal quantity for error message
Anna Siwikbb4cce2ff3f8
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.pyindex 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