#11559: urlresolvers.reverse do not work with namespaced urls and captured parameters in parent urlconf ----------------------------------------+----------------------------------- Reporter: kmik...@gmail.com | Owner: nobody Status: new | Milestone: 1.1 Component: Core framework | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ----------------------------------------+----------------------------------- Changes (by danros):
* needs_better_patch: => 0 * needs_docs: => 0 * needs_tests: => 0 * milestone: => 1.1 Comment: I also have exactly the same issue. Bit of a let-down as I upgraded to 1.1 ahead of time in order to use namespaced urls exactly in this way! In my example I have a 'username' argument as part of the root urlconf. >>> reverse('userwikis:wiki-view', kwargs={'slug':'testslug'}) '/users/(?P%3Cusername%3E%5Cw+)/wiki//testslug' If I include the username argument: >>> reverse('userwikis:wiki-view', kwargs={'username':'bar','slug':'testslug'}) NoReverseMatch: Reverse for 'wiki-view' with arguments '()' and keyword arguments '{'username': 'bar', 'slug': 'testslug'}' not found. Seems like a fairly nasty bug for 1.1? Especially as url namespaces are one of the headline features of 1.1. -- Ticket URL: <http://code.djangoproject.com/ticket/11559#comment:1> 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 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 -~----------~----~----~----~------~----~------~--~---