diff options
| author | Emmanuelle Delescolle <emma@lasolution.be> | 2014-10-05 20:06:51 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-10-06 08:50:48 -0400 |
| commit | c5c4bfa12aa0e8d4e8b46d77b6159f59330c3313 (patch) | |
| tree | 03088f50319043be629a48010e5642fa212456ad /tests/admin_views/tests.py | |
| parent | 0aad1f1ea912e1c855c1ff9c0b89fa28d2035ca3 (diff) | |
[1.6.x] Fixed #23604 -- Allowed related m2m fields to be references in the admin.
Thanks Simon Charette for review.
Backport of a24cf21722 from master
Diffstat (limited to 'tests/admin_views/tests.py')
| -rw-r--r-- | tests/admin_views/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 01a2288739..3913baa63f 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -599,6 +599,10 @@ class AdminViewBasicTest(AdminViewBasicTestCase): response = self.client.get("/test_admin/admin/admin_views/m2mreference/", {TO_FIELD_VAR: 'id'}) self.assertEqual(response.status_code, 200) + # #23604 - Specifying the pk of this model should be allowed when this model defines a m2m relationship + response = self.client.get("/test_admin/admin/admin_views/ingredient/", {TO_FIELD_VAR: 'id'}) + self.assertEqual(response.status_code, 200) + # #23329 - Specifying a field that is not refered by any other model directly registered # to this admin site but registered through inheritance should be allowed. response = self.client.get("/test_admin/admin/admin_views/referencedbyparent/", {TO_FIELD_VAR: 'id'}) |
