Skip to content

Commit

Permalink
Renamed a couple models to prevent duplicate names.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Jan 5, 2014
1 parent 5d9da75 commit f5f7617
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/forms_tests/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ def test_valid_loading_order(self):
"""
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))
Expand Down

0 comments on commit f5f7617

Please sign in to comment.