mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
Removed unused enumerate.
This commit is contained in:
parent
0b5d4c49d6
commit
00c7bfadf4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue