From a2b733fc4960dac6e1f3fd130c1fb5f0f5a4bc29 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 10 Jul 2015 18:08:32 +0400 Subject: [PATCH] Fix checkboxes disappear when auto_id = False --- bootstrapform/templates/bootstrapform/field.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bootstrapform/templates/bootstrapform/field.html b/bootstrapform/templates/bootstrapform/field.html index bfbdf64..d3ce1a3 100644 --- a/bootstrapform/templates/bootstrapform/field.html +++ b/bootstrapform/templates/bootstrapform/field.html @@ -2,13 +2,15 @@
{% if field|is_checkbox %} + {% if field.auto_id %}
+ {% else %} +
+ {% endif %}
- {% if field.auto_id %} - - {% endif %} + {% for error in field.errors %} {{ error }} {% endfor %}