title: Forms in Django
body: <p>I have two models, a studen and an agent. because student model has some choice field, I'm using ModelForm for Form and that's great. Every Student has an agent:</p>
  
  <pre><code>class Student(models.Model):
      ncode = models.CharField(max_length=12)
      name = models.CharField(max_length=40)
      family = models.CharField(max_length=60)
      father = models.CharField(max_length=40)
      telephone = models.CharField(max_length=18, blank=True)
      address = models.CharField(max_length=256)
      reagent = models.ForeignKey(Reagent)
      state = models.IntegerField(choices=STUDYING_STATUS)
      degree = models.IntegerField(choices=DEGREE_STATUS)
  
  class Reagent(models.Model):
      name = models.CharField(max_length=40)
      family = models.CharField(max_length=60)
      telephone = models.CharField(max_length=18)
  </code></pre>
  
  <p>These are forms:</p>
  
  <pre><code>class Student_Form(ModelForm):
      class Meta:
          model = Student
  
  class Reagent_Form(ModelForm):
      class Meta:
          model = Reagent
  </code></pre>
  
  <p>But I planed to get both agent and student in one form so, I put them together in one form in template:</p>
  
  <pre><code>&lt;form action="" method="POST"&gt; {% csrf_token %}
      &lt;table&gt;
          {{ student_form.as_table}}
          {{ reagent_form.as_table }}
      &lt;/table&gt;
      &lt;input type="submit" value="Add"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>My problem is how can I get entered informations in separate instances of student and agent forms?</strong>
  if in template was just one forms info I would used <strong>f = StudentForm(request.POST)</strong>! But the forms are mixed in this case</p>