1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.6.x] Fixed a couple form/formset deprecation warnings in tests.

Backport of a521d10322 from master.
This commit is contained in:
Tim Graham
2013-07-01 09:36:31 -04:00
parent 3c51962cab
commit 4c1029971e
2 changed files with 3 additions and 1 deletions

View File

@@ -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