mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +03:00
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:
parent
55e541a084
commit
887ba934e2
|
@ -1,3 +1,4 @@
|
|||
{% raw %}
|
||||
{% load crispy_forms_field %}
|
||||
|
||||
{% if field.is_hidden %}
|
||||
|
@ -46,3 +47,4 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endraw %}
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user