do the label thing only for boolean fields
authorRodney Ewing <ewing.rj@gmail.com>
Wed, 26 Jun 2013 14:36:11 +0000 (07:36 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Wed, 26 Jun 2013 14:36:11 +0000 (07:36 -0700)
mediagoblin/templates/mediagoblin/utils/wtforms.html

index f522172f607fb126031c05342a0537e837d8c5ae..635d4a41cd3ad9f21e4383a9a05657efe29a6c4d 100644 (file)
@@ -47,7 +47,7 @@
       {% endfor %}
     {%- endif %}
     {%- if field.description %}
-      {% if field.label.text == '' %}
+      {% if and field.type == 'BooleanField' %}
         <label for="{{ field.label.field_id }}">{{ field.description|safe }}</label>
       {% else %}
         <p class="form_field_description">{{ field.description|safe }}</p>