diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-05 20:47:24 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-01-05 20:52:46 +0100 |
| commit | f5f761716731ceedaf165a068e6f88164cd87e79 (patch) | |
| tree | 2e324619cc57759d0393b3f39aa038826f6c943a | |
| parent | 5d9da7597ebae302ba15c0ee85aaece80a6d4926 (diff) | |
Renamed a couple models to prevent duplicate names.
| -rw-r--r-- | tests/forms_tests/tests/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/forms_tests/tests/tests.py b/tests/forms_tests/tests/tests.py index 622b6386e9..0be1f26d81 100644 --- a/tests/forms_tests/tests/tests.py +++ b/tests/forms_tests/tests/tests.py @@ -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)) |
