From 2c029c718f45341cdd43ee094c24488743c633e6 Mon Sep 17 00:00:00 2001
From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Date: Wed, 30 Oct 2024 09:27:57 +0100
Subject: [PATCH] Fixed #35876 -- Displayed non-ASCII fieldset names when
rendering ModelAdmin.fieldsets.
Thank you to Namhong Kim for the report, and to Mariusz Felisiak and Marijke Luttekes for the review.
Regression in 01ed59f753139afb514170ee7f7384c155ecbc2d.
---
.../admin/templates/admin/includes/fieldset.html | 10 ++++------
docs/releases/5.1.3.txt | 3 +++
tests/admin_inlines/tests.py | 4 ++--
tests/admin_views/admin.py | 1 +
tests/admin_views/tests.py | 13 +++++++++++++
5 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/django/contrib/admin/templates/admin/includes/fieldset.html b/django/contrib/admin/templates/admin/includes/fieldset.html
index 8c1830da62..9c9b31965a 100644
--- a/django/contrib/admin/templates/admin/includes/fieldset.html
+++ b/django/contrib/admin/templates/admin/includes/fieldset.html
@@ -1,8 +1,7 @@
-{% with name=fieldset.name|default:""|slugify %}
-