help with form validation
Hello,
I would like to ask question about form error handling.
Main target is decreasing count of the code in the template. Of course
it is possible to display all form in template such as :
{{ form.as_table }} In this case possible to set some widget in form
and make a template code is simple. But what about field error
handling ?
is it possible to prepare error handling in form ? and add to
template simple code such as:
{% if form.error %} {% form.error %} {%endif%}
at the current moment I'm checking error one by one using : {% if
form.field.error %}
Form does validating and possible some simple way to work with error
handling present , is not it ?
Can anybody know this ?
Thanks, Serge
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home