Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix displaying variants without attributes
Marcin Gębalacfcfab66380f
diff --git a/saleor/product/forms.py b/saleor/product/forms.pyindex 5dc62031da..83d4fa12ff 100644--- a/saleor/product/forms.py+++ b/saleor/product/forms.py@@ -17,7 +17,7 @@ class VariantChoiceIterator(ModelChoiceIterator):'values') if self.product else Nonedef choice(self, obj):- if self.product:+ if self.attributes:values = get_attributes_display(obj, self.attributes).values()label = ', '.join([str(value) for value in values])else: