Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refactor description AttributeChoicesSortField (#10690)
Krzysztof Waliczek8d911cb27289
diff --git a/saleor/graphql/attribute/sorters.py b/saleor/graphql/attribute/sorters.pyindex 905d1417a2..053190d024 100644--- a/saleor/graphql/attribute/sorters.py+++ b/saleor/graphql/attribute/sorters.py@@ -61,8 +61,8 @@ class AttributeChoicesSortField(graphene.Enum):@propertydef 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]