#16442: step not passed to get_form when using NamedUrls
---------------------------------------+------------------------
               Reporter:  guillaume@…  |          Owner:  nobody
                   Type:  Bug          |         Status:  new
              Milestone:  1.4          |      Component:  Forms
                Version:  SVN          |       Severity:  Normal
             Resolution:               |       Keywords:
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  1
                  UI/UX:  0            |
---------------------------------------+------------------------
Changes (by anonymous):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 To be more precise it's when we do a get or post on the form that
 NamedUrlWizard doesn't pass the step name to get_form.

 Also I made a mistake in the code:

 {{{#!python
  def get_form(self, step=None, data=None, files=None):
         if self.STEP_STOCKS == self.steps.current:
              # It will always be true even if I am calling get_form with
 an other step parameter. Leading to always come through the loop and make
 recursive calls indifinitely
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16442#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to