Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Correct error message
michal95cfe5c1ed86
diff --git a/saleor/product/filters.py b/saleor/product/filters.pyindex 1747ce413d..7c4c479845 100644--- a/saleor/product/filters.py+++ b/saleor/product/filters.py@@ -81,7 +81,8 @@ class ProductFilter(FilterSet):def validate_sort_by(self, value):if value.strip('-') not in SORT_BY_FIELDS:raise ValidationError(- ('%s is not a valid sorting option' % value)+ _('%(value)s is not a valid sorting option'),+ params={'value': value})