Hi I've noticed that there have been changes in form error processing for templates when I've been updating some old code to work with django 1.0.2 from 0.96. My code for displaying errors at the top of the pages looked like this in 0.96:
{% if form.has_errors %} <h2>Please correct the following error{{ form.error_dict| pluralize }}:</h2> <ul class="errorlist"> {% for elem in form.error_dict.items %} <li>{{ elem.0 }}: {{ elem.1.0 }}</li> {% endfor %} </ul> {% endif %} I've had to replace form.has_errors with form.errors, as shown below: {% if form.errors %} <h3>Please correct the following error{{ form.errors|pluralize }}:</ h3> <ul class="errorlist"> {% for elem in form.errors %} <li>{{ elem }}: </li> {% endfor %} </ul> {% endif %} However the new code shown above only displays the field name and not the actual error text. What's the syntax for showing the actual error message on form.errors. Thanks for any help Simon --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---