Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed some logic that wasn't needed following removal of some depre…

…cated code.
  • Loading branch information...
commit c8c22ccdcb7d16f817f59807ae1199c8f93158ed 1 parent d63327d
@alex alex authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 django/db/models/query.py
View
5 django/db/models/query.py
@@ -638,7 +638,7 @@ def select_for_update(self, **kwargs):
obj.query.select_for_update_nowait = nowait
return obj
- def select_related(self, *fields, **kwargs):
+ def select_related(self, *fields):
"""
Returns a new QuerySet instance that will select related objects.
@@ -647,9 +647,6 @@ def select_related(self, *fields, **kwargs):
If select_related(None) is called, the list is cleared.
"""
- if kwargs:
- raise TypeError('Unexpected keyword arguments to select_related: %s'
- % (list(kwargs),))
obj = self._clone()
if fields == (None,):
obj.query.select_related = False
Please sign in to comment.
Something went wrong with that request. Please try again.