Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #22163 -- Stopped ignoring unhandled kwargs in select_for_update.

  • Loading branch information...
commit 222262ca2354abadf259f4186a0b43f583ed1bd1 1 parent 0cf158c
@aaugustin aaugustin authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 django/db/models/query.py
View
4 django/db/models/query.py
@@ -721,13 +721,11 @@ def complex_filter(self, filter_obj):
else:
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
FOR UPDATE lock.
"""
- # Default to false for nowait
- nowait = kwargs.pop('nowait', False)
obj = self._clone()
obj._for_write = True
obj.query.select_for_update = True
Please sign in to comment.
Something went wrong with that request. Please try again.