From 887ba934e2a709b3051347fc408f403df7bbb518 Mon Sep 17 00:00:00 2001 From: Philip Deuchler Date: Fri, 26 Aug 2016 13:35:48 -0600 Subject: [PATCH] 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 --- .../templates/bootstrap4/field.html | 2 ++ .../templates/bootstrap4/layout/field_errors_block.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/field.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/field.html index 8e092a70..2943e719 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/field.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/field.html @@ -1,3 +1,4 @@ +{% raw %} {% load crispy_forms_field %} {% if field.is_hidden %} @@ -46,3 +47,4 @@ {% endif %} {% endif %} +{% endraw %} \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/layout/field_errors_block.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/layout/field_errors_block.html index 1986dccc..57c979e6 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/layout/field_errors_block.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/bootstrap4/layout/field_errors_block.html @@ -1,5 +1,7 @@ +{% raw %} {% if form_show_errors and field.errors %} {% for error in field.errors %}

{{ error }}

{% endfor %} {% endif %} +{% endraw %}