title: Django Form Checkbox Group
body: <p>I have a django app that requires a large number of inputs via checkbox.</p>
  
  <pre><code>a = forms.BooleanField(required=False, initial=True)
  b = forms.BooleanField(required=False, initial=True)
  c = forms.BooleanField(required=False, initial=True)
  </code></pre>
  
  <p>But this looks messy in the template code e.g:</p>
  
  <pre><code>{% if form.data.a%}A{% endif %}
  {% if form.data.a%}B{% endif %}
  {% if form.data.a%}C{% endif %}
  </code></pre>
  
  <p>I was hoping there would be some way of doing this with a checkbox list.</p>
  
  <p>But this would require me to have all the checkboxes with the same name and a different value e.g:</p>
  
  <pre><code>&lt;input type="checkbox" name="letters" value="a" /&gt;
  &lt;input type="checkbox" name="letters" value="b" /&gt;
  &lt;input type="checkbox" name="letters" value="c" /&gt;
  </code></pre>
  
  <p>So in my template code I could say <code>request.POST.getlist( “letters” )</code></p>
  
  <p>But I cannot seem to find any info on how to set the BooleanFields to have the same name and different value.</p>
  
  <p>Can you help, or is there any easier way of doing this?</p>