1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #32771 -- Used IS_POPUP_VAR constant instead of hard-coded value.

This commit is contained in:
David Sanders
2021-05-19 11:10:58 -07:00
committed by Mariusz Felisiak
parent 6e155d280d
commit 2978c63a34
7 changed files with 17 additions and 14 deletions

View File

@@ -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",
}