Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Collection is no longer nullable
Patryk Zawadzkia137f35d8b43
diff --git a/utils/create_random_data.py b/utils/create_random_data.pyindex 4e5d6fbfb7..6608b5a51a 100644--- a/utils/create_random_data.py+++ b/utils/create_random_data.py@@ -41,7 +41,7 @@ def create_product(product_type, **kwargs):if random.choice([True, False]):collection = random.choice(PRODUCT_COLLECTIONS)else:- collection = None+ collection = ''defaults = {'name': fake.company(),@@ -114,7 +114,7 @@ def create_items(placeholder_dir, how_many=10):create_product_images(shirt, random.randrange(1, 5),placeholder_dir + "shirts")# Bag- bag = create_bag(category=bag_category, collection=None)+ bag = create_bag(category=bag_category, collection='')create_product_images(bag, random.randrange(1, 5),placeholder_dir + "bags")# chance to generate couple of sizes@@ -129,4 +129,4 @@ def create_items(placeholder_dir, how_many=10):create_variant(bag)print("Shirt - %s %s Variants" % (shirt, shirt.variants.count()))- print("Bag - %s %s Variants" % (bag, bag.variants.count()))\ No newline at end of file+ print("Bag - %s %s Variants" % (bag, bag.variants.count()))