#9176: NoReverseMatch for optional arguments
-----------------------------------------------------+----------------------
          Reporter:  [EMAIL PROTECTED]  |         Owner:  nobody
            Status:  reopened                        |     Milestone:        
         Component:  Core framework                  |       Version:  1.0   
        Resolution:                                  |      Keywords:        
             Stage:  Accepted                        |     Has_patch:  0     
        Needs_docs:  0                               |   Needs_tests:  0     
Needs_better_patch:  0                               |  
-----------------------------------------------------+----------------------
Changes (by mtredinnick):

  * status:  closed => reopened
  * resolution:  duplicate =>
  * stage:  Unreviewed => Accepted

Comment:

 This isn't a dupe of #9038. It's asking that if you pass in extra
 arguments (in this case `child=None`), the `reverse()` call shouldn't
 error out by saying that you've passed in extra arguments. So it's a
 different situation.

 It's probably a reasonable exception to the "must pass in the precise
 arguments", since the `groupdict()` function on a reg-exp `Match` object
 does contain `None` for optional groups, so, as the reporter mentions,
 this makes things truly reversible.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9176#comment:4>
Django <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to