title: How to display a Form in Django (CBV)
body: <p>I want to display a Form in my Django-Website</p>
  
  <p>forms.py:</p>
  
  <pre><code>from django import forms
  
  MyForm(forms.Form):
      price = forms.IntegerField()
      checkbox = forms.BooleanField()
      humidity = forms.IntegerField()
      weight = forms.IntegerField()
      amount = forms.IntegerField()
  </code></pre>
  
  <p>But I don't want to display the hole form.
  If the checkbox is checked I want to show "humidity" and "weight", else I only "amount" should be shown. </p>