From b1ffa9a9d78b0c2c5ad6ed5a1d84e380d5cfd010 Mon Sep 17 00:00:00 2001 From: seanhelvey Date: Fri, 13 Dec 2024 11:56:53 -0800 Subject: Fixed #13883 -- Rendered named choice groups with in FilteredSelectMultiple. This patch adds support for 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 --- docs/releases/6.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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 ````\s to + preserve :ref:`named groups ` (e.g. + ``choices=[("Group", [("1", "Item")]), ...]``). + :mod:`django.contrib.admindocs` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3