#11559: urlresolvers.reverse do not work with namespaced urls and captured
parameters in parent urlconf
------------------------------------------+----------------------
Reporter: kmike84@… | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: SVN
Resolution: | Keywords:
Triage Stage: Someday/Maybe | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
------------------------------------------+----------------------
Changes (by ungenio):
* needs_better_patch: 1 => 0
* has_patch: 0 => 1
Comment:
Thanks carljm for finding my dupe.
Took me a while to wrap my head around the issue once I noticed it. The
patch I've submitted includes a test to demonstrate the problem.
My solution involves essentially copying namespaced resolver into a new
root resolver. That way any parameters can be resolved as normal and not
interfere with non-namespaced functionality.
This new version uses memoize to reduce whatever performance impact that
copying might have.
Going to toggle patch flags, though won't be offended if patch is deemed
unfit. :)
--
Ticket URL: <http://code.djangoproject.com/ticket/11559#comment:19>
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.