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

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 I've think I have more or less understood your problem, but your
 explanation is quite confusing, so I may have missed something :-/

 The current implementation of `get_form` begins with:
 {{{
         if step is None:
             step = self.steps.current
 }}}

 Can't you just replicate this logic in your implementation? e.g.
 {{{
         if step is None:
             ...
 }}}
 or even better:
 {{{
         if step is None or step == self.steps.current:
             ...
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16442#comment:3>
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