Hi,

I am using the development version of FormWizard. The documentation
says that you can change the default template name by overriding
get_template_names(). My implementation seems to always return the
same template:

class MyWizard(SessionWizardView):

    def done(self, form_list, **kwargs):
        return render_to_response('done.html', {
            'form_data': [form.cleaned_data for form in form_list],
        })

    def get_template_names(self):
        return ['./mysite/step_1.html','./mysite/step_2.html']


Any idea on how to make the template change to step_2 after the user
clicks next on step 1?

The documentation on how to implement this method is missing from
https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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.

Reply via email to