From 906d682ba00473b1df73c5542ccc308755e9f46a Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Mon, 16 Feb 2015 20:34:37 +0100 Subject: [PATCH] Fixed regression in test introduced in d538e37e1b14603d1d0c94f185f378fc0ed1e53f --- tests/migrations/test_state.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/migrations/test_state.py b/tests/migrations/test_state.py index ae2712ae04..6d1f739da4 100644 --- a/tests/migrations/test_state.py +++ b/tests/migrations/test_state.py @@ -765,12 +765,12 @@ class RelatedModelsTests(SimpleTestCase): def test_direct_m2m(self): A = self.create_model("A", foreign_keys=[models.ManyToManyField('B')]) B = self.create_model("B") - self.assertRelated(A, [A.a_1.rel.through, B]) - self.assertRelated(B, [A, A.a_1.rel.through]) + self.assertRelated(A, [A.a_1.through, B]) + self.assertRelated(B, [A, A.a_1.through]) def test_direct_m2m_self(self): A = self.create_model("A", foreign_keys=[models.ManyToManyField('A')]) - self.assertRelated(A, [A.a_1.rel.through]) + self.assertRelated(A, [A.a_1.through]) def test_intermediate_m2m_self(self): A = self.create_model("A", foreign_keys=[models.ManyToManyField('A', through='T')])