On Wednesday, July 13, 2011 4:31:58 AM UTC+2, Dario Vergara wrote:
>
> Here is the solution:
>
> def get_template_names(self):
> next_step = int(self.steps.current)
> return 'step_%s.html' % next_step
>
>
> Simple solution. What is confusing is that the documentation says
Here is the solution:
def get_template_names(self):
next_step = int(self.steps.current)
return 'step_%s.html' % next_step
Simple solution. What is confusing is that the documentation says that
get_template_names() should return a list.
--
You received this message because y
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):
3 matches
Mail list logo