Re: [Django] #14772: Reversing a URL with optional arguments fails

2 views
Skip to first unread message

Django

unread,
Mar 20, 2015, 3:43:46 AM3/20/15
to django-...@googlegroups.com
#14772: Reversing a URL with optional arguments fails
-------------------------------------+-------------------------------------
Reporter: robhudson | Owner: nobody
Type: Bug | Status: closed
Component: Core (URLs) | Version: 1.2
Severity: Normal | Resolution: fixed
Keywords: reverse, | Triage Stage: Accepted
sprintdec2010 |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bpeschier):

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


Comment:

The reason the tests failed with the slash inside the capturing group was
that you should add the slash to the group in the reverse args/kwargs.

The second patch runs smoothly against master, probably fixed somewhere
between then and now.

I am including the tests as part of the tests/documentation of #13525

--
Ticket URL: <https://code.djangoproject.com/ticket/14772#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages