From 8665cf03d79c4b6222514c5943ccf3863a19cf08 Mon Sep 17 00:00:00 2001 From: devin13cox <36718613+devin13cox@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:00:25 -0700 Subject: [PATCH] Fixed #35330 -- Fixed the update of related widgets when the referenced model is camel case named. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> --- .../admin/widgets/related_widget_wrapper.html | 2 +- django/contrib/admin/widgets.py | 1 + tests/admin_views/admin.py | 8 ++++ tests/admin_views/models.py | 12 ++++++ .../test_related_object_lookups.py | 42 +++++++++++++++++++ tests/admin_widgets/tests.py | 22 ++++++++++ 6 files changed, 86 insertions(+), 1 deletion(-) diff --git a/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html b/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html index 8e4356a95c..99b20545af 100644 --- a/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html +++ b/django/contrib/admin/templates/admin/widgets/related_widget_wrapper.html @@ -1,5 +1,5 @@ {% load i18n static %} -