Fixed regression in test introduced in d538e37e1b

This commit is contained in:
Markus Holtermann 2015-02-16 20:34:37 +01:00
parent 50ec49c087
commit 906d682ba0
1 changed files with 3 additions and 3 deletions

View File

@ -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')])