Fixed regression in test introduced in d538e37e1b
This commit is contained in:
parent
50ec49c087
commit
906d682ba0
|
@ -765,12 +765,12 @@ class RelatedModelsTests(SimpleTestCase):
|
||||||
def test_direct_m2m(self):
|
def test_direct_m2m(self):
|
||||||
A = self.create_model("A", foreign_keys=[models.ManyToManyField('B')])
|
A = self.create_model("A", foreign_keys=[models.ManyToManyField('B')])
|
||||||
B = self.create_model("B")
|
B = self.create_model("B")
|
||||||
self.assertRelated(A, [A.a_1.rel.through, B])
|
self.assertRelated(A, [A.a_1.through, B])
|
||||||
self.assertRelated(B, [A, A.a_1.rel.through])
|
self.assertRelated(B, [A, A.a_1.through])
|
||||||
|
|
||||||
def test_direct_m2m_self(self):
|
def test_direct_m2m_self(self):
|
||||||
A = self.create_model("A", foreign_keys=[models.ManyToManyField('A')])
|
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):
|
def test_intermediate_m2m_self(self):
|
||||||
A = self.create_model("A", foreign_keys=[models.ManyToManyField('A', through='T')])
|
A = self.create_model("A", foreign_keys=[models.ManyToManyField('A', through='T')])
|
||||||
|
|
Loading…
Reference in New Issue