summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorseanhelvey <sean.helvey@gmail.com>2024-12-13 11:56:53 -0800
committerJacob Walls <jacobtylerwalls@gmail.com>2026-01-22 21:12:23 -0500
commitb1ffa9a9d78b0c2c5ad6ed5a1d84e380d5cfd010 (patch)
tree0fcfd9b90c788e21e58cb9249f4119062b8bfc4e /docs
parent3851601b2e080df34fb9227fe5d2fd43af604263 (diff)
Fixed #13883 -- Rendered named choice groups with <optgroup> in FilteredSelectMultiple.
This patch adds support for <optgroup>s in FilteredSelectMultiple widgets. When a popup returns a new object, if the source field contains optgroup choices, the optgroup is now also included in the response data. Additionally, this adds error handling for invalid source_model parameters to prevent crashes and display user-friendly error messages instead. Co-authored-by: Michael McLarnon <mmclar@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/6.1.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt
index 57129bfb66..fddbf6518a 100644
--- a/docs/releases/6.1.txt
+++ b/docs/releases/6.1.txt
@@ -95,6 +95,10 @@ Minor features
* The admin site login view now redirects authenticated users to the next URL,
if available, instead of always redirecting to the admin index page.
+* The admin's ``FilteredSelectMultiple`` widget now uses ``<optgroup>``\s to
+ preserve :ref:`named groups <field-choices-named-groups>` (e.g.
+ ``choices=[("Group", [("1", "Item")]), ...]``).
+
:mod:`django.contrib.admindocs`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~