From 765fcb642152d6dbf699f295b354beab1dd4f66a Mon Sep 17 00:00:00 2001 From: Miguel Araujo Perez Date: Thu, 16 Feb 2012 20:08:40 +0100 Subject: [PATCH] Only rendering general errors if form_show_errors is set to True --- crispy_forms/templates/bootstrap/uni_form.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crispy_forms/templates/bootstrap/uni_form.html b/crispy_forms/templates/bootstrap/uni_form.html index 4742495e5..28e5fbe2b 100644 --- a/crispy_forms/templates/bootstrap/uni_form.html +++ b/crispy_forms/templates/bootstrap/uni_form.html @@ -1,4 +1,6 @@ -{% include "bootstrap/errors.html" %} +{% if form_show_errors %} + {% include "bootstrap/errors.html" %} +{% endif %} {% for field in form %} {% include "bootstrap/field.html" %} {% endfor %}