#16442: step not passed to get_form when using NamedUrls
---------------------------------------+--------------------------
               Reporter:  guillaume@…  |          Owner:  nobody
                   Type:  Bug          |         Status:  reopened
              Milestone:  1.4          |      Component:  Forms
                Version:  SVN          |       Severity:  Normal
             Resolution:               |       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 anonymous):

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


Comment:

 Hi,

 I am sorry if I haven't been clear in my explanation, I am going to try to
 do better:

 If I use your solution, it's equivalent to what I wrote before, so it
 won't work.

 Here is the workflow that is happening now, if I use your solution:

 1. NamedURLs calls get_info with no step variable, so step=None
 2. I check if self.steps.current == self.STEP_STOCK, if it is I run my
 custom code, else I run the default behavior
 3. I run my custom code, in my custom code I will call get_info with step
 variable step=self.STEP_PRODUCT, I do that to get back some info from my
 previous step
 4. I in get_info I am again checking self.steps.current ==
 self.STEP_STOCKS, and of course this hasn't changed so
 5. My custom code will be ran again
 6. We have a recursive loop

 Is it more clear?

 Thanks!

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