Fixes an issue with Jinja choking on a django template tag (#759)

* Fixes an issue with Jinja choking on a django template tag, similar to #278

* Same fix for field_errors_block.html
This commit is contained in:
Philip Deuchler 2016-08-26 13:35:48 -06:00 committed by Daniel Roy Greenfeld
parent 55e541a084
commit 887ba934e2
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{% raw %}
{% load crispy_forms_field %}
{% if field.is_hidden %}
@ -46,3 +47,4 @@
</div>
{% endif %}
{% endif %}
{% endraw %}

View File

@ -1,5 +1,7 @@
{% raw %}
{% if form_show_errors and field.errors %}
{% for error in field.errors %}
<p id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="text-danger help-block">{{ error }}</p>
{% endfor %}
{% endif %}
{% endraw %}