Skip to content

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

Wrong var name in get_attributes_display_map

Maciek Jabłoński9366dbaa07d9
diff --git a/saleor/product/models/utils.py b/saleor/product/models/utils.py
index 009950b84d..624a71b801 100644
--- a/saleor/product/models/utils.py
+++ b/saleor/product/models/utils.py
@@ -11,5 +11,5 @@ def get_attributes_display_map(obj, attributes):
if choice_obj:
display_map[attribute.pk] = choice_obj
else:
- display_map[attribute.pk] = value_pk
+ display_map[attribute.pk] = value
return display_map