From ed0a2c3238aa0b9c0d01c436d5bcd70930d696b0 Mon Sep 17 00:00:00 2001 From: Hannes Ljungberg Date: Fri, 22 Apr 2022 19:07:56 +0200 Subject: [PATCH] Removed unnecessary variable in Index.create_sql(). Unnecessary since fdfb3086fcba1b737ec09676ab4bb95105f3371e. --- django/db/models/indexes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django/db/models/indexes.py b/django/db/models/indexes.py index 71976c4fdd..f6f9a004af 100644 --- a/django/db/models/indexes.py +++ b/django/db/models/indexes.py @@ -110,7 +110,6 @@ class Index: model._meta.get_field(field_name) for field_name, _ in self.fields_orders ] - col_suffixes = [order[1] for order in self.fields_orders] if schema_editor.connection.features.supports_index_column_ordering: col_suffixes = [order[1] for order in self.fields_orders] else: