Skip to content

Commit

Permalink
Removed some logic that wasn't needed following removal of some depre…
Browse files Browse the repository at this point in the history
…cated code.
  • Loading branch information
alex committed Jul 7, 2013
1 parent d63327d commit c8c22cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django/db/models/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit c8c22cc

Please sign in to comment.