Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Issue 2572 - Removed quantity-allocated generation from create_variant function in PopulatedbScript
MartinSeibert6be6318a8b63
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.pyindex a9c3136cff..ebaf662964 100644--- a/saleor/core/utils/random_data.py+++ b/saleor/core/utils/random_data.py@@ -302,7 +302,6 @@ def create_variant(product, **kwargs):defaults = {'product': product,'quantity': fake.random_int(1, 50),- 'quantity_allocated': fake.random_int(1, 50),'weight': fake.weight() if random.randint(0, 1) else None}defaults.update(kwargs)variant = ProductVariant(**defaults)