From f5f761716731ceedaf165a068e6f88164cd87e79 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 5 Jan 2014 20:47:24 +0100 Subject: [PATCH] Renamed a couple models to prevent duplicate names. --- tests/forms_tests/tests/tests.py | 8 ++++---- 1 file 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))