Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Allow to sort products by update date
Artur Smętd47dc4a4f09b
diff --git a/saleor/product/filters.py b/saleor/product/filters.pyindex 9667ef83bc..1b38fff9ff 100644--- a/saleor/product/filters.py+++ b/saleor/product/filters.py@@ -10,7 +10,9 @@ from .models import Product, ProductAttributeSORT_BY_FIELDS = OrderedDict([('name', pgettext_lazy('Product list sorting option', 'name')),- ('price', pgettext_lazy('Product list sorting option', 'price'))])+ ('price', pgettext_lazy('Product list sorting option', 'price')),+ ('updated_at', pgettext_lazy(+ 'Product list sorting option', 'last updated'))])class ProductFilter(SortedFilterSet):