Skip to content

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

Add example product reference attribute (#6693)

Iga Karbowiak842223d383c9
diff --git a/saleor/static/populatedb_data.json b/saleor/static/populatedb_data.json
index 98ff0f6f91..e0a00cb598 100644
--- a/saleor/static/populatedb_data.json
+++ b/saleor/static/populatedb_data.json
@@ -7051,6 +7051,17 @@
]
}
},
+ {
+ "model": "attribute.assignedproductattribute",
+ "pk": 36,
+ "fields": {
+ "product": 74,
+ "assignment": 9,
+ "values": [
+ 95, 96
+ ]
+ }
+ },
{
"model": "attribute.assignedvariantattribute",
"pk": 1,
@@ -8522,6 +8533,15 @@
"product_type": 9
}
},
+ {
+ "model": "attribute.attributeproduct",
+ "pk": 9,
+ "fields": {
+ "sort_order": null,
+ "attribute": 31,
+ "product_type": 9
+ }
+ },
{
"model": "attribute.attributevariant",
"pk": 1,
@@ -8917,6 +8937,26 @@
"available_in_grid": true
}
},
+ {
+ "model": "attribute.attribute",
+ "pk": 31,
+ "fields": {
+ "private_metadata": {},
+ "metadata": {},
+ "slug": "related-products",
+ "name": "Related products",
+ "type": "product-type",
+ "input_type": "reference",
+ "entity_type": "Product",
+ "value_required": false,
+ "is_variant_only": false,
+ "visible_in_storefront": true,
+ "filterable_in_storefront": false,
+ "filterable_in_dashboard": false,
+ "storefront_search_position": 0,
+ "available_in_grid": false
+ }
+ },
{
"model": "attribute.attributevalue",
"pk": 1,
@@ -9546,6 +9586,32 @@
"attribute": 30
}
},
+ {
+ "model": "attribute.attributevalue",
+ "pk": 95,
+ "fields": {
+ "sort_order": 0,
+ "name": "Bean Juice",
+ "value": "",
+ "slug": "74_79",
+ "file_url": null,
+ "content_type": null,
+ "attribute": 31
+ }
+ },
+ {
+ "model": "attribute.attributevalue",
+ "pk": 96,
+ "fields": {
+ "sort_order": 1,
+ "name": "Carrot Juice",
+ "value": "",
+ "slug": "74_73",
+ "file_url": null,
+ "content_type": null,
+ "attribute": 31
+ }
+ },
{
"model": "product.productimage",
"pk": 1,