Todd O'Bryan wrote:
> How do people handle validation errors in a standard way? Surely, the
> 
> {% if form.name.errors %}*** {{ form.name.errors|join:", " }}{% endif %}
> 
> repeated over and over again (with field changes) in the documentation
> example cries out for some better way.
> 
> I was thinking of creating a custom tag, but thought I'd ask to make
> sure I wasn't missing something.

{{ form.name.html_error_list }}, wraps it in a <ul class="errorlist"></ul>

-- 
--Max Battcher--
http://www.worldmaker.net/
"I'm gonna win, trust in me / I have come to save this world / and in 
the end I'll get the grrrl!" --Machinae Supremacy, Hero (Promo Track)

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to