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