On Thu, Jun 4, 2009 at 10:55 AM, Daniel Roseman <
roseman.dan...@googlemail.com> wrote:

>
> On Jun 4, 3:19 pm, adelaide_mike <mike.ro...@internode.on.net> wrote:
> > My latest problem can be illustrated thus:
> >
> > In the first form we select the main course - spam or eggs.  In the
> > next form we select the dessert - ice cream or mud cake, and in the
> > third form we select the after-dimmer drink - tea or coffee.
> >
> > How is the proper way to remember the choice made in form 1 and form
> > 2?  I assume I need to pass the main_course_id to the second form and
> > get it back so I can pass it and dessert_id to the third form and then
> > get all three back, main_course_id, dessert_id and drink_id so they
> > can be sent to the kitchen.
> >
> > I had thought that the form wizard might help but on reflection I now
> > doubt that.
> >
> > Any clues welcome
> >
> > Mike
>
> You could store the choices in the session. See
> http://docs.djangoproject.com/en/dev/topics/http/sessions/
> --
> DR.
> >
>
You could also put it in a hidden form field, the user can change it this
way by altering the data they POST though.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to