Removed unused enumerate.
This commit is contained in:
parent
0b5d4c49d6
commit
00c7bfadf4
|
@ -252,7 +252,7 @@ class SQLCompiler(object):
|
||||||
asc, desc = ORDER_DIR['DESC']
|
asc, desc = ORDER_DIR['DESC']
|
||||||
|
|
||||||
order_by = []
|
order_by = []
|
||||||
for pos, field in enumerate(ordering):
|
for field in ordering:
|
||||||
if hasattr(field, 'resolve_expression'):
|
if hasattr(field, 'resolve_expression'):
|
||||||
if not isinstance(field, OrderBy):
|
if not isinstance(field, OrderBy):
|
||||||
field = field.asc()
|
field = field.asc()
|
||||||
|
|
Loading…
Reference in New Issue