diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2014-11-12 13:22:08 +0200 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2014-11-12 13:22:08 +0200 |
| commit | 4e9a6c94e6bea805e089df2dee2d4ab2c902c827 (patch) | |
| tree | 07242d5db71c7de584f040bb7e2f0862417aa633 | |
| parent | c56c42b5c01ed774cfa8e044cd372a984608536c (diff) | |
Removed extra enumerate() from Query.setup_joins()
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
