diff options
| author | Jorge C. Leitão <jorgecarleitao@gmail.com> | 2014-06-14 12:50:18 +0200 |
|---|---|---|
| committer | Jorge C. Leitão <jorgecarleitao@gmail.com> | 2014-06-14 15:14:13 +0200 |
| commit | d2cbcbcc76a0718d45ca2305c8a55b86eb4c58c1 (patch) | |
| tree | aa76de4cb42c3b6f8b7443f32a63bdcb678a87a4 /django/db/models/sql/compiler.py | |
| parent | 0b980ef85779835d5600564f1327c478712a4882 (diff) | |
Improved code style of Query.table_alias() usage.
Diffstat (limited to 'django/db/models/sql/compiler.py')
| -rw-r--r-- | django/db/models/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index fbb0152874..59b31dcb79 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -546,7 +546,7 @@ class SQLCompiler(object): result.append('%s%s%s' % (connector, qn(name), alias_str)) first = False for t in self.query.extra_tables: - alias, unused = self.query.table_alias(t) + alias, _ = self.query.table_alias(t) # Only add the alias if it's not already present (the table_alias() # calls increments the refcount, so an alias refcount of one means # this is the only reference. |
