title: How to Display object_list of a queryset in a form with ModelChoiceField as each instance in each row?
body: <p>I have created a Child model related to a Parent model with a ForiegnKey. In forms.py, I use a ModelChoiceField where queryset = Parent.objects.all &amp; widget = RadioInput. In my template i have a table of rows. When rendering the template, it returns the whole queryset in each row because {{form.post}} returns whole queryset. How can I list each object as per row?</p>
  
  <p>Models.py:</p>
  
  <pre><code>class Parent(models.Model):
  
      parent_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
      user = models.ForeignKey(settings.AUTH_USER_MODEL, default=1)
      from1 = models.CharField(max_length=20)
  
  class Child(models.Model):
  
      child_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
      parent = models.ForeignKey(Parent, default=1, related_name='childs' )
      user = models.OneToOneField(settings.AUTH_USER_MODEL, null=True, blank=True, unique=False)
      amount = models.IntegerField()
  </code></pre>
  
  <p>forms.py:</p>
  
  <pre><code>class ChildForm(forms.ModelForm):
      parent = forms.ModelChoiceField(queryset= Parent.objects.all(), label="Parent", widget=forms.RadioSelect(), initial=0)
      amount = forms.IntegerField(help_text='Place the child for a Parent')
  
      def __init__(self, *args, **kwargs):
          self.request = kwargs.pop('request', None)
          super(ChildForm, self).__init__(*args, **kwargs)
          self.fields['parent'].queryset = Parent.objects.all()
  </code></pre>
  
  <p>Template:</p>
  
  <pre><code>{% for parent in parent_queryset %}
  &lt;table class="table table-striped, sortable"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
  
              &lt;th&gt;Load No.&lt;/th&gt;
              &lt;th&gt;From&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt; // HOW CAN I LIST THE PARENT'S OBJECTS AS PER ROW??
              &lt;td &gt;{{form.parent}}&lt;/td&gt;
  
              &lt;td&gt;{{ parent.from1 }}&lt;/a&gt;&lt;br/&gt;&lt;/td&gt;
          &lt;/tr&gt; 
      &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;table class="table table-striped, sortable "  style="margin-top: 10px"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt; Amount&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;     
              &lt;form class="nomargin" method='POST' action='' enctype='multipart/form-data'&gt;{% csrf_token %}
              &lt;td&gt;{% render_field  form.amount  class="form-control" %}&lt;/td&gt;
          &lt;/tr&gt;
       &lt;/tbody&gt;
   &lt;/table&gt;
  
  &lt;input type='submit' value='Post Child'/&gt;&lt;/form&gt;
  
  {% endfor %}
  </code></pre>