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
|
||||
"""
|
||||
class A(models.Model):
|
||||
ref = models.ForeignKey("B")
|
||||
class C(models.Model):
|
||||
ref = models.ForeignKey("D")
|
||||
|
||||
class B(models.Model):
|
||||
class D(models.Model):
|
||||
pass
|
||||
|
||||
class Meta:
|
||||
model = A
|
||||
model = C
|
||||
fields = '__all__'
|
||||
|
||||
self.assertTrue(issubclass(ModelFormMetaclass(str('Form'), (ModelForm,), {'Meta': Meta}), ModelForm))
|
||||
|
|
Loading…
Reference in New Issue