summaryrefslogtreecommitdiff
path: root/tests/model_forms_regress
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/model_forms_regress
parent5459795ef224c5c81461c06a95d38390ee91f014 (diff)
Fixed #20548 -- Removed all PendingDeprecationWarnings from django test suite
Diffstat (limited to 'tests/model_forms_regress')
-rw-r--r--tests/model_forms_regress/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/model_forms_regress/tests.py b/tests/model_forms_regress/tests.py
index 80900a59e0..39ae857219 100644
--- a/tests/model_forms_regress/tests.py
+++ b/tests/model_forms_regress/tests.py
@@ -97,12 +97,14 @@ class PartiallyLocalizedTripleForm(forms.ModelForm):
class Meta:
model = Triple
localized_fields = ('left', 'right',)
+ fields = '__all__'
class FullyLocalizedTripleForm(forms.ModelForm):
class Meta:
model = Triple
- localized_fields = "__all__"
+ localized_fields = '__all__'
+ fields = '__all__'
class LocalizedModelFormTest(TestCase):
def test_model_form_applies_localize_to_some_fields(self):