On Feb 3, 12:17 am, Johan Liseborn <[email protected]> wrote:
> Thus, you could do something like (no changes to get_template):
>
> class EnrollWizard(FormWizard):
> def process_step(self, request, form, step):
> if step == 0:
> self.extra_context['foo'] = form.cleaned_data['foo']
> elif step == 1:
> self.extra_context['bar'] = form.cleaned_data['bar']
> elif step == 3:
> self.extra_context['baz'] = form.cleaned_data['baz']
>
> Now, in each template you will have access to more and more additional
> information, just like so:
>
> {{ foo }}
Good solution, i like it!
Thanks,
Lorenzo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---