diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-10-08 12:06:02 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-08 15:06:02 -0400 |
| commit | 1e87c9fe71703fab23039aa63fafe4f6aac98bbc (patch) | |
| tree | ac4cd78872ec81f18503d6bc3bc5257bf3d693b6 /django/db/models/query_utils.py | |
| parent | 2ba588e7736e28626e34fd1b691fd4d5ae6a2cae (diff) | |
Replaced kwargs.pop() with keyword-only arguments.
Diffstat (limited to 'django/db/models/query_utils.py')
| -rw-r--r-- | django/db/models/query_utils.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/django/db/models/query_utils.py b/django/db/models/query_utils.py index ce311639da..f6bc0bd030 100644 --- a/django/db/models/query_utils.py +++ b/django/db/models/query_utils.py @@ -55,10 +55,8 @@ class Q(tree.Node): default = AND conditional = True - def __init__(self, *args, **kwargs): - connector = kwargs.pop('_connector', None) - negated = kwargs.pop('_negated', False) - super().__init__(children=[*args, *sorted(kwargs.items())], connector=connector, negated=negated) + def __init__(self, *args, _connector=None, _negated=False, **kwargs): + super().__init__(children=[*args, *sorted(kwargs.items())], connector=_connector, negated=_negated) def _combine(self, other, conn): if not isinstance(other, Q): |
