From cd3ba1edf756747d60cdffc1f9346482a76a6a50 Mon Sep 17 00:00:00 2001
From: Aivars Kalvans <aivars.kalvans@gmail.com>
Date: Mon, 25 Sep 2023 13:15:21 +0300
Subject: [PATCH] Fix features check

---
 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 275530e27b..d9edce3fa1 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.can_return_columns_from_update
+            and not self.connection.features.can_return_columns_from_update
         ):
             raise NotSupportedError("This backend does not support UPDATE RETURNING")