#15723: reverse does not work if quotation mark is used on a keyword argument
----------------------------+---------------------------
 Reporter:  zeroos          |         Owner:  nobody
   Status:  new             |     Milestone:
Component:  Core (Other)    |       Version:  SVN
 Keywords:  reverse regexp  |  Triage Stage:  Unreviewed
Has patch:  0               |
----------------------------+---------------------------
 In urls.py I have the following line:

 {{{
 ...
 (r'^json/calendar/((?P<course>[\d,]+)/)?$', json.calendar_block),
 ...
 }}}


 When I try to reverse this url this way:

 {{{
 reverse(json.calendar_block, kwargs={'course': 1})
 }}}

 I get an error saying that it cannot reverse this.

 When I change the line in urls.py to:
 {{{
 ...
 (r'^json/calendar/(?P<course>[\d,]+)/$', json.calendar_block),
 ...
 }}}

 everything works great.


 I would assume that it is not a bug, but it worked before and suddenly,
 after pulling the newest Django release from svn it stopped.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15723>
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