Skip to content

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

Change type filter field

Adam Janikd941be3a979b
diff --git a/saleor/graphql/discount/types.py b/saleor/graphql/discount/types.py
index a1f54c798c..569d214c0f 100644
--- a/saleor/graphql/discount/types.py
+++ b/saleor/graphql/discount/types.py
@@ -11,7 +11,7 @@ class Voucher(CountableDjangoObjectType):
interfaces = [relay.Node]
filter_fields = {
'name': ['icontains'],
- 'type': ['icontains'],
+ 'type': ['exact'],
'discount_value': ['gte', 'lte'],
'start_date': ['exact'],
'end_date': ['exact']}