title: How to render a CheckboxInput from a ModelForm of a OneToOneField referring to BooleanFields?
body: <p>Given the following models in <em>models.py</em>:</p>
  
  <pre><code>class Profile(models.Model):
      name = models.CharField(max_length=30)
      email_address = models.CharField(max_length=30)
      password = models.CharField(max_length=30)
      preferences = models.OneToOneField("Preferences")
  
      def __unicode__(self):
          return u"%s" % self.name
  
  class Preferences(models.Model):
      likes_hugging = models.BooleanField(default=False)
      despises_men = models.BooleanField(default=False)
  </code></pre>
  
  <p>Now the following form in <em>forms.py</em>...</p>
  
  <pre><code>class PreferencesModelForm(forms.ModelForm):
      class Meta:
          model = Profile
          fields = ("preferences",)
  </code></pre>
  
  <p>... produces the following result:</p>
  
  <p><img src="https://i.stack.imgur.com/seUCS.png" alt="form1"></p>
  
  <p>But <strong>how do I get the following result instead</strong>?</p>
  
  <p><img src="https://i.stack.imgur.com/j51Lm.png" alt="form2"></p>