Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix for putting None as a list to django filter (#6542)
Maciej Korycinskid57ac9dcdbf9
diff --git a/saleor/graphql/order/tests/test_order.py b/saleor/graphql/order/tests/test_order.pyindex 0075bb212c..d26996eaa6 100644--- a/saleor/graphql/order/tests/test_order.py+++ b/saleor/graphql/order/tests/test_order.py@@ -2401,6 +2401,9 @@ QUERY_GET_FIRST_EVENT = """id}}+ fulfilledItems {+ id+ }}}}diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.pyindex a73a739261..9228f388ec 100644--- a/saleor/graphql/order/types.py+++ b/saleor/graphql/order/types.py@@ -171,7 +171,7 @@ class OrderEvent(CountableDjangoObjectType):@staticmethoddef resolve_fulfilled_items(root: models.OrderEvent, _info):- lines = root.parameters.get("fulfilled_items", None)+ lines = root.parameters.get("fulfilled_items", [])return models.FulfillmentLine.objects.filter(pk__in=lines)@staticmethod