From a521d103227be4e5660cf7a66bf98003696aa781 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 1 Jul 2013 09:36:31 -0400 Subject: Fixed a couple form/formset deprecation warnings in tests. --- tests/model_forms/tests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/model_forms') diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 9d71798b3d..09c62c5205 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -252,10 +252,12 @@ class StatusNoteCBM2mForm(forms.ModelForm): fields = '__all__' widgets = {'status': forms.CheckboxSelectMultiple} + class CustomErrorMessageForm(forms.ModelForm): name1 = forms.CharField(error_messages={'invalid': 'Form custom error message.'}) class Meta: + fields = '__all__' model = CustomErrorMessage -- cgit v1.3