title: Django: The page shows "(<django.forms.fields.BooleanField object at ...>)" at variable location in a template
body: <p>I was trying include a checkbox on my template, but it showed me some text on the browser instead.</p>
  
  <p>I have a form (forms.py) that contains boolean field, e.g:</p>
  
  <pre><code>Class MyForm(forms.Form):
      my_checkbox = forms.BooleanField(required=False, label='my_checkbox'),
  </code></pre>
  
  <p>and I have the following in my templates/my_app/my_form_template.py:</p>
  
  <pre><code>&lt;form id="form" method="post"&gt;
      {{ form.my_checkbox }}
  &lt;form&gt;
  </code></pre>
  
  <p>In the browser after running the server, I've got:
  <code>(&lt;django.forms.fields.BooleanField object at 0x0000014BE3CF9208&gt;,)</code></p>
  
  <p>The CharField and ChoiceField work perfectly except BooleanField. What is a way to represent a checkbox on the template?</p>
  
  <p>I've tried {{ form }} in the template and it shows the checkbox, but I wish to custom the attributes of the checkbox.</p>