diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-02-07 17:55:47 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-02-14 11:19:55 +0100 |
| commit | 1791a7e75af8c9e7ca54425592379fd1f840fe88 (patch) | |
| tree | 5c7da7419443c0aaaa530919700659891e3ae2a8 /tests/admin_custom_urls | |
| parent | 47ee7b48adbcc0dafc3404034286c5fcbcd1cea6 (diff) | |
Fixed #15779 -- Allowed 'add' primary key in admin edition
Thanks Marwan Alsabbagh for the report, and Simon Charette and
Tim Graham for the reviews.
Diffstat (limited to 'tests/admin_custom_urls')
| -rw-r--r-- | tests/admin_custom_urls/tests.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/admin_custom_urls/tests.py b/tests/admin_custom_urls/tests.py index c2d5ad4994..5ef9f61f67 100644 --- a/tests/admin_custom_urls/tests.py +++ b/tests/admin_custom_urls/tests.py @@ -61,11 +61,6 @@ class AdminCustomUrlsTest(TestCase): """ # Should get the change_view for model instance with PK 'add', not show # the add_view - response = self.client.get('/admin/admin_custom_urls/action/add/') - self.assertEqual(response.status_code, 200) - self.assertContains(response, 'Change action') - - # Ditto, but use reverse() to build the URL url = reverse('admin:%s_action_change' % Action._meta.app_label, args=(quote('add'),)) response = self.client.get(url) |
