1
0
mirror of https://github.com/django/django.git synced 2025-01-30 12:09:25 +00:00

Fixed regression in test introduced in d538e37e1b14603d1d0c94f185f378fc0ed1e53f

This commit is contained in:
Markus Holtermann 2015-02-16 20:34:37 +01:00
parent 50ec49c087
commit 906d682ba0

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