summaryrefslogtreecommitdiff
path: root/tests/forms_tests
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2013-06-14 15:02:30 +0100
committerMarc Tamlyn <marc.tamlyn@gmail.com>2013-06-14 15:37:39 +0100
commit46789e76c68b5713795fbf71ce5fdccb727074fa (patch)
treee5ebddf35699361a0324151e3b7134563a859bab /tests/forms_tests
parent5459795ef224c5c81461c06a95d38390ee91f014 (diff)
Fixed #20548 -- Removed all PendingDeprecationWarnings from django test suite
Diffstat (limited to 'tests/forms_tests')
-rw-r--r--tests/forms_tests/tests/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/forms_tests/tests/tests.py b/tests/forms_tests/tests/tests.py
index 2616ddaf7d..99a67c320c 100644
--- a/tests/forms_tests/tests/tests.py
+++ b/tests/forms_tests/tests/tests.py
@@ -208,7 +208,8 @@ class RelatedModelFormTests(TestCase):
ref = models.ForeignKey("B")
class Meta:
- model=A
+ model = A
+ fields = '__all__'
self.assertRaises(ValueError, ModelFormMetaclass, str('Form'), (ModelForm,), {'Meta': Meta})
@@ -226,7 +227,8 @@ class RelatedModelFormTests(TestCase):
pass
class Meta:
- model=A
+ model = A
+ fields = '__all__'
self.assertTrue(issubclass(ModelFormMetaclass(str('Form'), (ModelForm,), {'Meta': Meta}), ModelForm))