Skip to content

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

Fix resolver

Rafał Pitońbdd477319589
diff --git a/saleor/graphql/attribute/types.py b/saleor/graphql/attribute/types.py
index c48ab64b9b..401f7b380e 100644
--- a/saleor/graphql/attribute/types.py
+++ b/saleor/graphql/attribute/types.py
@@ -188,7 +188,7 @@ class Attribute(CountableDjangoObjectType):
@staticmethod
def resolve_choices(root: models.Attribute, info, **kwargs):
if root.input_type in AttributeInputType.TYPES_WITH_CHOICES:
- qs = cast(QuerySet[models.AttributeValue], root.root.values.all())
+ qs = cast(QuerySet[models.AttributeValue], root.values.all())
else:
qs = cast(
QuerySet[models.AttributeValue], models.AttributeValue.objects.none()