Renamed a couple models to prevent duplicate names.
This commit is contained in:
parent
5d9da7597e
commit
f5f7617167
|
@ -239,14 +239,14 @@ class RelatedModelFormTests(TestCase):
|
||||||
"""
|
"""
|
||||||
Test for issue 10405
|
Test for issue 10405
|
||||||
"""
|
"""
|
||||||
class A(models.Model):
|
class C(models.Model):
|
||||||
ref = models.ForeignKey("B")
|
ref = models.ForeignKey("D")
|
||||||
|
|
||||||
class B(models.Model):
|
class D(models.Model):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = A
|
model = C
|
||||||
fields = '__all__'
|
fields = '__all__'
|
||||||
|
|
||||||
self.assertTrue(issubclass(ModelFormMetaclass(str('Form'), (ModelForm,), {'Meta': Meta}), ModelForm))
|
self.assertTrue(issubclass(ModelFormMetaclass(str('Form'), (ModelForm,), {'Meta': Meta}), ModelForm))
|
||||||
|
|
Loading…
Reference in New Issue