From 00c7bfadf40996e84344f662b280f92467710eab Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Thu, 29 Dec 2016 14:55:17 +0100 Subject: [PATCH] Removed unused enumerate. --- django/db/models/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 3e61f8a925e..c37264ed0b8 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -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()