From 75d2da797e100442d3573dfa7ae490972cea32d8 Mon Sep 17 00:00:00 2001 From: Stas Rudakou Date: Fri, 16 May 2014 18:56:25 +0300 Subject: [1.7.x] Fixed #22266 - quote PK before redirecting away from add_view (django.contrib.admin) Backport of ebd70d4d00c252d5122c13906da5bddc8de0bce5 from master. --- tests/admin_views/tests.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests') diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index fbea1d49c7..21f1eb818c 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1779,6 +1779,30 @@ class AdminViewStringPrimaryKeyTest(TestCase): args=(quote(self.pk),)) self.assertContains(response, '