title: Django BooleanField keeps return False (empty) regardless if checked or not
body: <p>As stated in the title.  BooleanField wont return True even if checked.  This one is driving me nuts!</p>
  
  <p>First I retrieve checkboxes based on a list of field id's based on a model.</p>
  
  <p>forms.py</p>
  
  <pre><code>class MyForm(forms.Form):
      def __init__(self, *args, **kwargs):
          super(MyForm, self).__init__(*args, **kwargs)
          fields = Fields.objects.all()
          for field in fields:
              field_name = field.ID
              self.fields[field_name] = forms.BooleanField(required=False, widget=forms.CheckboxInput(attrs={'class':'checkbox-small'}), label=field_name)
  </code></pre>
  
  <p>The handler never returns True even if checked on in the DOM.</p>
  
  <p>models.py</p>
  
  <pre><code>def myFormHandler(request):
      siteDictionary = getDictionary(request)
      if request.method == 'POST':
          form = MyForm(request.POST, error_class=DivErrorList, auto_id='%s')
          if form.is_valid():
              fields = Fields.objects.all()
              for field in fields:
                  if form.cleaned_data[field.ID]:
                      print "Finally returned true!"
      else:
          form = MyForm()
          siteDictionary['form'] = form
      return render_to_response('page.html', siteDictionary, context_instance=RequestContext(request))
  </code></pre>
  
  <p>Any ideas?  Thanks for your help.</p>
  
  <p><strong>EDIT</strong> Here is the template</p>
  
  <pre><code>&lt;table cellspacing="0" cellpadding="0" border="0" class="table-all"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;input type="checkbox" name="check" class="checkall checkbox-small" /&gt;&lt;/th&gt;
              &lt;th&gt;Name&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
      {% for field in form %}
          &lt;tr&gt;
              &lt;td&gt;{{ field }}&lt;/td&gt;
              &lt;td&gt;{{ field.label }}&lt;/td&gt;
          &lt;/tr&gt;
      {% endfor %}
      &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;div id="pager" class="pager"&gt;
  &lt;form method="post" action="."&gt;{% csrf_token %}
          &lt;button type="submit" class="green"&gt;&lt;span&gt;Submit&lt;/span&gt;&lt;/button&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>