summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2026-02-19 14:44:01 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2026-02-20 09:12:49 -0500
commitf9b820f8ac50aad025949087e660a551691832e4 (patch)
tree1ecbec2d2ea9974c37d4ed97cd3262436074d305 /docs
parentdeac58ed822c6cd819e916e6c3d1736c7adfa31e (diff)
[6.0.x] Fixed #36934, Refs #35972 -- Coped with params in a tuple in BuiltinLookup.as_sql().
For custom lookups subclassing BuiltinLookup and following the advice in the release notes to return params in a tuple, this change will obviate the need to audit as_sql() in addition to process_lhs() to be "resilient against either tuples or lists" as described in the release note. Regression in 8914f4703cf03e2a01683c4ba00f5ae7d3fa449d.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/6.0.3.txt4
-rw-r--r--docs/releases/6.0.txt2
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/6.0.3.txt b/docs/releases/6.0.3.txt
index ddd853cd49..1dff197d06 100644
--- a/docs/releases/6.0.3.txt
+++ b/docs/releases/6.0.3.txt
@@ -11,3 +11,7 @@ Bugfixes
* Fixed :exc:`NameError` when inspecting functions making use of deferred
annotations in Python 3.14 (:ticket:`36903`).
+
+* Fixed :exc:`AttributeError` when subclassing builtin lookups and neglecting
+ to :ref:`override<tuple-for-params>` ``as_sql()`` to accept any sequence
+ (:ticket:`36934`).
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt
index bfad64e485..1697a095c9 100644
--- a/docs/releases/6.0.txt
+++ b/docs/releases/6.0.txt
@@ -454,6 +454,8 @@ If you haven't dealt with this warning by now, add
settings, or ``default_auto_field = 'django.db.models.AutoField'`` to an app's
``AppConfig``, as needed.
+.. _tuple-for-params:
+
Custom ORM expressions should return params as a tuple
------------------------------------------------------