diff options
Diffstat (limited to 'django/db/models/query_utils.py')
-rw-r--r-- | django/db/models/query_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query_utils.py b/django/db/models/query_utils.py index 8c41116d69..ce311639da 100644 --- a/django/db/models/query_utils.py +++ b/django/db/models/query_utils.py @@ -58,7 +58,7 @@ class Q(tree.Node): def __init__(self, *args, **kwargs): connector = kwargs.pop('_connector', None) negated = kwargs.pop('_negated', False) - super().__init__(children=list(args) + sorted(kwargs.items()), connector=connector, negated=negated) + super().__init__(children=[*args, *sorted(kwargs.items())], connector=connector, negated=negated) def _combine(self, other, conn): if not isinstance(other, Q): |