title: Django Forms With foreign key
body: <p>I have 2 models in django, and im also using ModelForm, my question is the second model have a froreignkey of the 1, and i want to have one page when generating the form. It's possible, how to link the two forms in one page.</p>
  
  <pre><code>Class Event(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField()
  
  class Date(models.Model):
     id = models.AutoField(primary_key=True)
     start = models.DateTimeField()
     end = models.DateTimeField()
     event = models.ForeignKey("Event")
  </code></pre>
  
  <p>I also have </p>
  
  <pre><code>class EventForm(ModelForm)
  Class Date(ModelForm)
  </code></pre>
  
  <p>What i want is to create the event in one page in my templates.</p>
  
  <p>Thanks.</p>