Skip to content

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

Remove unnecessary method

Adam Bogdał8defde117819
diff --git a/saleor/graphql/extensions/sorters.py b/saleor/graphql/extensions/sorters.py
index 427f0a3d61..a52a993aca 100644
--- a/saleor/graphql/extensions/sorters.py
+++ b/saleor/graphql/extensions/sorters.py
@@ -1,5 +1,4 @@
import graphene
-from django.db.models import QuerySet
from ..core.types import SortInputObjectType
@@ -19,10 +18,6 @@ class PluginSortField(graphene.Enum):
return f"Sort plugins by {descriptions[self.name]}."
raise ValueError("Unsupported enum value: %s" % self.value)
- @staticmethod
- def sort_by_active(queryset: QuerySet, sort_by: SortInputObjectType) -> QuerySet:
- return queryset.order_by(f"{sort_by.direction}{sort_by.field}", "name")
-
class PluginSortingInput(SortInputObjectType):
class Meta: