Hi guys,
Is it possible to access the "form.cleaned_data" values from another function that is not part of a form-wizard?
For example, I have a view like this:
# form-wizard
class PatchWizard(SessionWizardView):
def done(self, form_list, **kwargs):
< here i have the values of the form.cleaned_data >
# simple example to show the values:
for form in form_list:
print form.cleaned_data
for k, v in form.cleaned_data.items():
print k, v
return render_to_response(
'done.html',
{'form_data': [form.cleaned_data for form in form_list]},
)
# another function
def download(request):
< here i would like to get the values from form.cleaned_data >
data = form.cleaned_data
I'm not sure if I could get it from the request object at this point.
Any tips? :)
Thanks,
Leandro