From 4e9a6c94e6bea805e089df2dee2d4ab2c902c827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Wed, 12 Nov 2014 13:22:08 +0200 Subject: [PATCH] Removed extra enumerate() from Query.setup_joins() --- django/db/models/sql/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index b2528cad41..856bc51f4f 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1478,7 +1478,7 @@ class Query(object): # Then, add the path to the query's joins. Note that we can't trim # joins at this stage - we will need the information about join type # of the trimmed joins. - for pos, join in enumerate(path): + for join in path: opts = join.to_opts if join.direct: nullable = self.is_nullable(join.join_field)