diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-04-08 09:30:10 -0400 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-04-08 13:34:01 -0400 |
| commit | 280256499c5b2d636949f3c8cb52159a8e4c26bb (patch) | |
| tree | e275c6e2cef52f557de85d98bbf370ad44950b70 /tests/admin_views/tests.py | |
| parent | f86eb5f89bc0bd05b407040082d0679feff09090 (diff) | |
Refs CVE-2026-4292 -- Isolated new test in AdminViewListEditable.
As originally written, this test interfered with
admin_views.tests.SeleniumTests.test_inline_uuid_pk_add_with_popup.
To fix this, register the new ModelAdmin with a different AdminSite.
Diffstat (limited to 'tests/admin_views/tests.py')
| -rw-r--r-- | tests/admin_views/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 107267b342..532f1e1ea0 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -4742,7 +4742,7 @@ class AdminViewListEditable(TestCase): "_save": "Save", } # This model admin allows no add permissions. - changelist_url = reverse("admin:admin_views_parentwithuuidpk_changelist") + changelist_url = reverse("admin7:admin_views_parentwithuuidpk_changelist") response = self.client.post(changelist_url, data) self.assertEqual(response.status_code, HTTPStatus.BAD_REQUEST) self.assertEqual(ParentWithUUIDPK.objects.count(), before_count) |
