django modelform field to replace the default error message for all fields

The problem is this: django gives "required field." if field is required and not filled. How to do that in all the forms say instead of "required field." was "this field must be filled"?
October 8th 19 at 03:11
2 answers
October 8th 19 at 03:13
the first thing that came to mind...)
{% if form.field.error='required field' %}this field must be completed{% endif %}
Something tells me that this is not true, Wei = ) Yet found such a thing: blog.brendel.com/2012/01/django-modelforms-setting-any-field.html flexible pretty. Test :) - Gennaro.Ebert commented on October 8th 19 at 03:16
softwaremaniacs.org/forum/django/30320/ here's another of my what you need - Laurianne9 commented on October 8th 19 at 03:19
I know about it, but it's for each field of each form will have to write 7 lines of extra code... In the solution which I found is much smaller and should be easier to read then. Now I try to finished to generally 1 to set and applied machine :) - Gennaro.Ebert commented on October 8th 19 at 03:22
October 8th 19 at 03:15
email = forms.EmailField(label='Email', required=False, error_messages={'required': 'This field must be filled in.'})

Find more questions by tags Django