I think I found what I was looking for: inlineformsets. Here: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-formsets
On Jul 12, 1:56 pm, Erich <efic...@gmail.com> wrote: > Derek, > > Cool, thanks for that. I wonder if something similar would work on > passing values to a formset... > > Erich > > On Jul 8, 1:17 am, derek <gamesb...@gmail.com> wrote: > > > > > On Jul 7, 12:44 am, Erich <efic...@gmail.com> wrote: > > > > I am using create_update.create_object to handle my forms (generic > > > forms both use modelforms). I have two forms. The second relies on the > > > pk of the first as a fk. I can't figure out what is the best practice > > > to A: save the pk as a variable or into the session, then B: pull that > > > variable either out of the session or another place, such as a global > > > variable. > > > > I could write the forms manually, but this does not seem to be the > > > most efficient way, unless create_object was meant for very simple > > > forms. I have tried using extra_context to call another function, but > > > I dont know if that is the best way either. > > > Maybe have a look > > at:http://www.petersanchez.com/2008/09/26/django-formwizard-passing-data... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.