From e45633086c9121b600c1d8fb9c63ec4421fd3f8c Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Sat, 18 Mar 2017 08:55:34 +0100 Subject: [PATCH] Removed unused rest_of_lookups parameter of Query.try_transform(). Unused since 534aaf56f4a8e261e111426b2a709e2f8816192f. --- django/db/models/sql/query.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index eef636d902..b028d1a1db 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1095,13 +1095,13 @@ class Query: # We didn't find a lookup. We are going to interpret # the name as transform, and do an Exact lookup against # it. - lhs = self.try_transform(lhs, name, lookups) + lhs = self.try_transform(lhs, name) final_lookup = lhs.get_lookup('exact') return final_lookup(lhs, rhs) - lhs = self.try_transform(lhs, name, lookups) + lhs = self.try_transform(lhs, name) lookups = lookups[1:] - def try_transform(self, lhs, name, rest_of_lookups): + def try_transform(self, lhs, name): """ Helper method for build_lookup(). Try to fetch and initialize a transform for name parameter from lhs.