On 2/16/07, jfagnani <[EMAIL PROTECTED]> wrote:
> It'd also be nice if fields had an 'error' property, so that you could
> do some things in the template like {% if field.error %}

You can do this in the template as

{% if form.fieldname.errors %}
...special stuff here to highlight the field...
{{ form.fieldname }}
...close any tags opened before the input...
{% else %}
{{ form.fieldname }}
{% endif %}

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to