commit f2a6c427b96911d8992a44b345646fceca8983a4
Author: Emmanuelle Delescolle <emma@lasolution.be>
Date: Sun Oct 5 16:03:15 2014 +0200
failing test
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 518e8fd..2aea007 100644
a
|
b
|
class AdminViewBasicTest(AdminViewBasicTestCase):
|
620 | 620 | response = self.client.get("/test_admin/admin/admin_views/m2mreference/", {TO_FIELD_VAR: 'id'}) |
621 | 621 | self.assertEqual(response.status_code, 200) |
622 | 622 | |
| 623 | #Specifying the pk of this model should be allowed when this model defines a m2m relationship |
| 624 | response = self.client.get("/test_admin/admin/admin_views/pizza/", {TO_FIELD_VAR: 'id'}) |
| 625 | self.assertEqual(response.status_code, 200) |
| 626 | |
623 | 627 | # #23329 - Specifying a field that is not refered by any other model directly registered |
624 | 628 | # to this admin site but registered through inheritance should be allowed. |
625 | 629 | response = self.client.get("/test_admin/admin/admin_views/referencedbyparent/", {TO_FIELD_VAR: 'id'}) |