Tuesday, April 22, 2014

Re: Form wizard get_template_names()



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 that
get_template_names() should return a list.

I would like to point that your example doesn't return a list.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/df58c7eb-1ec2-498f-9cd9-57752e58eee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment