On Thu, Oct 23, 2008 at 2:55 PM, Martin <[EMAIL PROTECTED]> wrote: > > > 1. PaymentContactInfoForm is created => I add the extra CharField to > the form > 2. PaymentContactInfoForm is saved => I can get the comment from the > form > 4. CreditPayShipForm is saved => I can get the order that was just > created > > My question is: how do I get the order and the comment at the same > time? When I have the comment, I don't have the order and when I have > the order, I don't have the comment. I somehow have to connect the > two. What is the "right" way to do this? Comming from a PHP world (new > to Python, Django and Satchmo) I'm beginning to think I need a > session, am I right or am I missing something here? > > Best Regards > Martin >
You could just use my threaded_localhost middleware, and then use "get_current_request", then put the comment into the session. Otherwise, hm. I guess you'd need to make a "pending comments" model or something and then attach it to the user. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
