mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed a couple form/formset deprecation warnings in tests.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user