Skip to content

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

Refactor description AttributeChoicesSortField (#10690)

Krzysztof Waliczek8d911cb27289
diff --git a/saleor/graphql/attribute/sorters.py b/saleor/graphql/attribute/sorters.py
index 905d1417a2..053190d024 100644
--- a/saleor/graphql/attribute/sorters.py
+++ b/saleor/graphql/attribute/sorters.py
@@ -61,8 +61,8 @@ class AttributeChoicesSortField(graphene.Enum):
@property
def description(self):
descriptions = {
- AttributeSortField.NAME.name: "Sort attribute choice by name.",
- AttributeSortField.SLUG.name: "Sort attribute choice by slug.",
+ AttributeChoicesSortField.NAME.name: "Sort attribute choice by name.",
+ AttributeChoicesSortField.SLUG.name: "Sort attribute choice by slug.",
}
if self.name in descriptions:
return descriptions[self.name]