Fixed #22163 -- Stopped ignoring unhandled kwargs in select_for_update.
This commit is contained in:
parent
0cf158cf9a
commit
222262ca23
@ -721,13 +721,11 @@ class QuerySet(object):
|
|||||||
else:
|
else:
|
||||||
return self._filter_or_exclude(None, **filter_obj)
|
return self._filter_or_exclude(None, **filter_obj)
|
||||||
|
|
||||||
def select_for_update(self, **kwargs):
|
def select_for_update(self, nowait=False):
|
||||||
"""
|
"""
|
||||||
Returns a new QuerySet instance that will select objects with a
|
Returns a new QuerySet instance that will select objects with a
|
||||||
FOR UPDATE lock.
|
FOR UPDATE lock.
|
||||||
"""
|
"""
|
||||||
# Default to false for nowait
|
|
||||||
nowait = kwargs.pop('nowait', False)
|
|
||||||
obj = self._clone()
|
obj = self._clone()
|
||||||
obj._for_write = True
|
obj._for_write = True
|
||||||
obj.query.select_for_update = True
|
obj.query.select_for_update = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user