On Sat, Jan 30, 2010 at 1:25 PM, leveille <leveil...@gmail.com> wrote: > I'm having some issues with the form wizard, that maybe someone can > shed some light on. According to the docstring in the method > process_step: I can "dynamically alter self.form_list". So, based on > my project needs, I'm appending forms to the form_list. The forms I'm > appending contain questions and potential answers: > http://dpaste.com/hold/152201/, > specific to whoever is hitting the form. One person might hit the > form and need a dynamic form_list of 6 forms, and another might need > 5, 7, or 8. > > The issue is that when 2 people hit the formwizard at the same time, > they start to see each others questions and answers. I guess I don't > understand how process_step suggests I can dynamically alter the > form_list, when by doing so I'm modifying the form list of another > user. Is the form_list a shared object among visitors hitting the > formwizard url defined in urls.py? I've seen this issue under apache2/ > prefork/worker/mod_wsgi, and while running the app with runserver. > > I'm really just looking for someone with more experience than I to let > me know if I should abandon this approach. It seems like others have > had issues similar to mine (http://www.carlosble.com/?cat=22) and > recommend not using the FormWizard dynamically .. however, > process_step specifically mentions dynamically altering > self.form_list. I'm just wondering if I'm missing something > obvious.
Not sure how comfortable you are with patching django itself, but this ticket has a different approach to the form-wizard that among other things, supports what you're looking for. http://code.djangoproject.com/ticket/9200 -Dave -- 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.