Removed unused enumerate.

This commit is contained in:
Florian Apolloner 2016-12-29 14:55:17 +01:00
parent 0b5d4c49d6
commit 00c7bfadf4
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ class SQLCompiler(object):
asc, desc = ORDER_DIR['DESC']
order_by = []
for pos, field in enumerate(ordering):
for field in ordering:
if hasattr(field, 'resolve_expression'):
if not isinstance(field, OrderBy):
field = field.asc()