Skip to content

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

Make return value more readable

akjanik4c93687a9bdd
diff --git a/saleor/core/utils/filters.py b/saleor/core/utils/filters.py
index 7b5d2b5e25..08420f839c 100644
--- a/saleor/core/utils/filters.py
+++ b/saleor/core/utils/filters.py
@@ -1,6 +1,6 @@
def get_sort_by_choices(filter_set):
return [(choice[0], choice[1].lower()) for choice in
- filter_set.filters['sort_by'].field.choices.choices[0::2]]
+ list(filter_set.filters['sort_by'].field.choices)[1::2]]
def get_now_sorted_by(filter_set, default_sort='name'):