title: django i can't see my form
body: <p>I don't understand why I can't see my form.</p>
  
  <p>I would like to create a form with a drop down menu with display_name of rider model as the choices.</p>
  
  <p>my models.py:</p>
  
  <pre><code>class Rider(models.Model):
      first_name = models.CharField(max_length = 256,blank= True)
      last_name = models.CharField(max_length = 256,blank= True)
      display_name = models.CharField(max_length = 256,blank= True)
      birth = models.DateTimeField(default=timezone.now)
      place_of_birth = models.CharField(max_length = 256,blank= True)
      age = models.IntegerField(default = 0,blank= True)
      nationality = models.CharField(max_length = 256,blank= True)
      height = models.FloatField(default = 0.0 ,blank= True)
      weight = models.FloatField(default = 0.0 ,blank= True)
      team = models.CharField(max_length = 256, blank= True)
      team_code = models.CharField(max_length = 256, blank= True)
      cost = models.IntegerField(default = 0,blank= True)
  
  
      def __str__(self):
          return self.display_name
  </code></pre>
  
  <p>my form.py:</p>
  
  <pre><code>class ScoreForm(forms.ModelForm):
     riders =forms.ModelChoiceField(queryset=Rider.objects.all(),to_field_name="display_name")
     class Meta:
        model = Rider
        fields = ('display_name',)
  </code></pre>
  
  <p>my view.py:</p>
  
  <pre><code>class ScoreView(TemplateView):
      form_class = ScoreForm
      model=Rider
      template_name = 'blog/score.html'
  </code></pre>
  
  <p>my score.html:</p>
  
  <pre><code>{% extends 'blog/base.html'%}
  {% block content %}
  &lt;h1&gt;Score page&lt;/h1&gt;
  &lt;form method="POST" &gt;
      {% csrf_token %}
      {{form}}
      &lt;button type="submit" class="save btn btn-default" name="button"&gt;Save&lt;/button&gt;
  &lt;/form&gt;
  {% endblock %}
  </code></pre>
  
  <p>Screenshot:
  <img src="https://i.stack.imgur.com/GcCg0.jpg" alt="Screenshot"></p>