Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update script for generating data
Marcin Gębalacbc1749a4ec9
diff --git a/utils/create_random_data.py b/utils/create_random_data.pyindex 094e76dbcb..c448f3a8f2 100644--- a/utils/create_random_data.py+++ b/utils/create_random_data.py@@ -42,11 +42,12 @@ def create_product(**kwargs):defaults.update(kwargs)product = GenericProduct.objects.create(**defaults)if not product.base_variant:- product.variants.create(- name=product.name,+ GenericVariant(+ name='',sku=fake.random_int(1, 100000),price=product.price,- product=product)+ weight=product.weight,+ product=product).save()return product