Skip to content
Browse files

changed {{ error }} to {{ error|safe }} so that html (eg links) can b…

…e added to error messages
  • Loading branch information...
1 parent 749dca6 commit e72a9314bd5c41a946698ba0c5919c9eb51b6e43 @j0hnsmith j0hnsmith committed with pydanny Apr 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 uni_form/templates/uni_form/field.html
View
2 uni_form/templates/uni_form/field.html
@@ -6,7 +6,7 @@
<div id="div_{{ field.auto_id }}" class="ctrlHolder{% if field.errors %} error{% endif %}{% if field|is_checkbox %} checkbox{% endif %} {% if field.field.widget.attrs.class %} {{ field.field.widget.attrs.class }}{% endif %}">
{% for error in field.errors %}
<p id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="errorField">
- {{ error }}
+ {{ error|safe }}
</p>
{% endfor %}

0 comments on commit e72a931

Please sign in to comment.
Something went wrong with that request. Please try again.