Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Adjust random_data

Pacu24e429512e343
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.py
index 159a9dbe7f..af3ffed8b8 100644
--- a/saleor/core/utils/random_data.py
+++ b/saleor/core/utils/random_data.py
@@ -104,7 +104,7 @@ COLLECTIONS_SCHEMA = [
'name': 'Summer collection',
'image_name': 'summer.jpg'},
{
- 'name': 'Sale',
+ 'name': 'Winter sale',
'image_name': 'sale.jpg'}]
@@ -620,7 +620,7 @@ def create_menu_items_by_schema(menu):
name='Collections',
collection=collection)
- for collection in Collection.objects.all():
+ for collection in Collection.objects.filter(background_image__isnull=False): # noqa
menu.items.get_or_create(
name=collection.name,
collection=collection,