Re: Handle multiple modelforms in one html form

2015-01-17 Thread Eric Abrahamsen
Kakar Nyori writes: > When doing so, only the last pform is gets saved. And the other two > pforms are ignored. How do I get to save all the three forms of photo > (pforms) accordingly? > > Or is there any other way around? Your help will be much appreciated! > Thank you. James is right that a f

Re: Handle multiple modelforms in one html form

2015-01-17 Thread James Schneider
I'm guessing that if you look at the generated source code in the browser, all of the names for the fields in the pform form's are the same, which likely collide on the Django side (if the browser actually posts all the copies with the same field names, not sure what the typical browser behavior is

Handle multiple modelforms in one html form

2015-01-17 Thread Kakar Nyori
A user will have photos which will be related with their specific album. So this was the model for that: class Album(models.Model): > user = models.ForeignKey(User) > title = models.CharField(max_length=200) > pub_date = models.DateTimeField(auto_now_add=True, auto_now