Browse files

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

  • Loading branch information...
1 parent 0cf158c commit 222262ca2354abadf259f4186a0b43f583ed1bd1 @aaugustin aaugustin committed Mar 20, 2014
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

0 comments on commit 222262c

Please sign in to comment.