Re: Form wizard get_template_names()

2014-04-23 Thread Juan Miguel Taboada
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

Re: Form wizard get_template_names()

2011-07-12 Thread Dario Vergara
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

Form wizard get_template_names()

2011-07-10 Thread Dario Vergara
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):