Re: FormWizard and form data

2009-09-24 Thread nostradamnit
I figured it out - you just have to overload the FormWizard method parse_params, like so... class CreateThingWizard(FormWizard): def parse_params(self, request, *args, **kwargs): current_step = self.determine_step(request, *args, **kwargs) if request.method == 'GET' and curre

Re: FormWizard and form data

2009-09-23 Thread Brian McKeever
I would try creating a view that uses a form factory to define some dynamic forms. This post explains how to create a dynamic form factory: http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/ and then I'd return the Wizard that has the new forms as arguments. I bet it would work, but I haven

FormWizard and form data

2009-09-18 Thread nostradamnit
I'm trying to use a FormWizard for a 2 step form. In the first form, I want to populate the email and post code fields with data from the current user (request.user.email, request.user.profile.code_postal), but I can't see how to pass the data dictionary to the form?!? I see how to pass initial da