From 298d696ea273323d97ed346b0927d209b76b9771 Mon Sep 17 00:00:00 2001 From: Aivars Kalvans Date: Mon, 25 Sep 2023 12:49:03 +0300 Subject: [PATCH] Missing newline --- django/db/backends/sqlite3/features.py | 2 +- django/db/models/sql/compiler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py index c0a7f06732..e203255b6f 100644 --- a/django/db/backends/sqlite3/features.py +++ b/django/db/backends/sqlite3/features.py @@ -155,4 +155,4 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def can_return_columns_from_update(self): - return Database.sqlite_version_info >= (3, 35) \ No newline at end of file + return Database.sqlite_version_info >= (3, 35) diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index d9edce3fa1..275530e27b 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1920,7 +1920,7 @@ class SQLUpdateCompiler(SQLCompiler): """ if ( self.query.update_returning - and not self.connection.features.can_return_columns_from_update + and not self.connection.can_return_columns_from_update ): raise NotSupportedError("This backend does not support UPDATE RETURNING")