Re: FormWizard Passing Data between forms

2009-10-13 Thread valhalla
Thanks for the reply... This is the kind of thing I am looking for. However I have tried this approach and I could not get it working exactly right. Along this line I have tried the following: class MyForm(forms.Form): def __init__(self, extra_param=None, *args, **kwargs): self.e

Re: FormWizard Passing Data between forms

2009-10-13 Thread nabucosound
It is a common practice to pass extra parameters to the __init__ function of the form and save them as properties of the object that can be later on accessed by any method like the clean method: class MyForm(forms.Form): def __init__(self, extra_param=None, *args, **kwargs): self.ext

FormWizard Passing Data between forms

2009-10-12 Thread valhalla
I am trying to figure out a pythonic way of passing data between the forms of a formwizard. I can do it with inital data but I need to access the data in the clean method of the form. The only ways I can get working are really messy and wont scale easily. Any suggestions out there? --~--~---