From 682e85e72c95ff4750ff2c5c0193fdb9ea8ddbf3 Mon Sep 17 00:00:00 2001 From: Jan Weiher Date: Thu, 5 Sep 2013 23:31:01 +0200 Subject: [PATCH] Fix behavior for auto_id=False on form creation --- bootstrapform/templates/bootstrapform/field.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bootstrapform/templates/bootstrapform/field.html b/bootstrapform/templates/bootstrapform/field.html index e59fa6e..8150352 100644 --- a/bootstrapform/templates/bootstrapform/field.html +++ b/bootstrapform/templates/bootstrapform/field.html @@ -4,10 +4,11 @@ {% if field|is_checkbox %}
+ {% if field.auto_id %} - + {% endif %} {% for error in field.errors %} {{ error }} {% endfor %} @@ -20,8 +21,9 @@
{% else %}{% if field|is_radio %} - - + {% if field.auto_id %} + + {% endif %}
{% for choice in field %}
@@ -44,8 +46,9 @@
{% else %} - - + {% if field.auto_id %} + + {% endif %}
{{ field }}