Removed some logic that wasn't needed following removal of some deprecated code.

This commit is contained in:
Alex Gaynor 2013-07-08 08:49:58 +10:00
parent d63327d843
commit c8c22ccdcb
1 changed files with 1 additions and 4 deletions

View File

@ -638,7 +638,7 @@ class QuerySet(object):
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 @@ class QuerySet(object):
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