Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Drop uniqueness of ordered product SKU
Patryk Zawadzkia19ef8d07608
diff --git a/saleor/order/models.py b/saleor/order/models.pyindex f255c0badb..8e13eaeb75 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -188,7 +188,7 @@ class OrderedItem(models.Model, ItemLine):product_name = models.CharField(pgettext_lazy('OrderedItem field', 'product name'), max_length=128)product_sku = models.CharField(pgettext_lazy('OrderedItem field', 'sku'),- max_length=32, unique=True)+ max_length=32)quantity = models.DecimalField(pgettext_lazy('OrderedItem field', 'quantity'),max_digits=10, decimal_places=4)