Commits

Steve Losh committed 587f198

Fix the checkbox initial data bug.

Comments (0)

Files changed (1)

goodfields/templates/goodfields/fields/checkbox.html

     <label>
         <input id="{{ field.auto_id }}" type="checkbox" class="checkbox"
                name="{{ field.html_name }}"
-               {% if checked %}checked="checked"{% endif %} />
+               {% if initial %}checked="checked"{% endif %} />
         {% firstof label field.label %}
         {{ field.errors }}
         <span class="form-help-text">{{ field.help_text }}</span>