So I have a model Member:
class Member(models.Model):
first_name = models.CharField(max_length = 15)
last_name = models.CharField(max_length = 15)
house = models.ForeignKey('House', null = True)
created_on = models.DateTimeField('created on')
user = models.OneToOneField(User, null = True)
and a form to create the model:
class MemberForm(forms.Form):
first_name = forms.CharField()
last_name = forms.CharField()
email_address = forms.EmailField()
My app works where you create a House and specify the number of Members in your house. That's as far as I have working, but I would like it to continue to a new page where it displays an appropriate number of forms (one for each Member), and then creates a Member instance for each with the supplied data. I'm confused as to how I access the data from each form, since they're all technically in the same HTML form. More specifically how I identify what email field goes with which first name field and so on. Any help would be greatly appreciated, thanks.