From c462ade33231c764e0c5f0fad57106b780b7d67c Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sun, 24 Nov 2024 18:27:31 +0000 Subject: [PATCH] Update django/db/models/sql/compiler.py Co-authored-by: Lily Foote --- 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 29a8a75557..64a9fb7457 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -2111,7 +2111,7 @@ class SQLBulkUpdateCompiler(SQLCompiler): def get_set_sql_clause(self, values): qn = self.quote_name_unless_alias set_sql = [] - for idx, field in enumerate(values.field_list, 2): + for idx, field in enumerate(values.field_list, start=2): name = field.column set_sql.append( "%s = %s.%s" % (qn(name), qn("subquery"), qn(f"column{idx}"))