Renamed a couple models to prevent duplicate names.

This commit is contained in:
Aymeric Augustin 2014-01-05 20:47:24 +01:00
parent 5d9da7597e
commit f5f7617167
1 changed files with 4 additions and 4 deletions

View File

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