title: How to pass choises from views.py in forms.ChoiceField?
body: <p>I want to make a form for online tests, but I can't figure out how to make radio buttons (forms.ChoiceField or similar) with the transfer of the selection value not from forms, but from views. Why can't you get from models directly in the form? because I do not know in advance which pk is needed.</p>
  <p>Please tell me an option that will help you create a form for online testing. I ask with examples to make it easier to understand. Thanks in advance.</p>
  <pre><code>class Course(models.Model):
  title = models.CharField(max_length=255, verbose_name='***')
  slug = models.SlugField(max_length=255, verbose_name='url', unique=True)
  metadesc = models.CharField(max_length=255, verbose_name='Meta description', default='***')
  content = models.TextField(blank=True, verbose_name='****')
  colLec = models.IntegerField(max_length=255, default=0, verbose_name='***')
  Lect1 = models.TextField(blank=True, verbose_name='****')
  Lect2 = models.TextField(blank=True, verbose_name='****')
  Lect3 = models.TextField(blank=True, verbose_name='***')
  Test1 = models.TextField(blank=True, verbose_name='***')
  Test1_1 = models.TextField(blank=True, verbose_name='***')
  Test1_2 = models.TextField(blank=True, verbose_name='***')
  Test1_3 = models.TextField(blank=True, verbose_name='****')
  Test1_4 = models.TextField(blank=True, verbose_name='***')
  Test1_5 = models.TextField(blank=True, verbose_name='***')
  
  def __str__(self):
      return self.title
  
  class Meta:
      verbose_name = '***'
      verbose_name_plural = '****'
      ordering = ['title']
  </code></pre>