diff options
author | David Sanders <dsanders11@ucsbalum.com> | 2021-05-19 11:10:58 -0700 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-05-20 07:04:26 +0200 |
commit | 2978c63a34b4aa0f170a1e5a0f8f4cb2811fa248 (patch) | |
tree | fffd7274005dd197999fc23f103e7f98c4434bc0 /tests/admin_custom_urls | |
parent | 6e155d280dbe4bab171619654d8abc4b7f197e78 (diff) | |
download | django-2978c63a34b4aa0f170a1e5a0f8f4cb2811fa248.tar.gz |
Fixed #32771 -- Used IS_POPUP_VAR constant instead of hard-coded value.
Diffstat (limited to 'tests/admin_custom_urls')
-rw-r--r-- | tests/admin_custom_urls/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/admin_custom_urls/tests.py b/tests/admin_custom_urls/tests.py index e0c2d4f746..ebd3291f2c 100644 --- a/tests/admin_custom_urls/tests.py +++ b/tests/admin_custom_urls/tests.py @@ -1,4 +1,5 @@ from django.contrib.admin.utils import quote +from django.contrib.admin.views.main import IS_POPUP_VAR from django.contrib.auth.models import User from django.template.response import TemplateResponse from django.test import TestCase, override_settings @@ -58,7 +59,7 @@ class AdminCustomUrlsTest(TestCase): Ensure POST on add_view works. """ post_data = { - '_popup': '1', + IS_POPUP_VAR: '1', "name": 'Action added through a popup', "description": "Description of added action", } |