Changes between Initial Version and Version 2 of Ticket #3525


Ignore:
Timestamp:
Mar 9, 2007, 6:30:52 AM (18 years ago)
Author:
Malcolm Tredinnick
Comment:

Yep. A bug.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3525

    • Property Triage Stage UnreviewedDesign decision needed
    • Property Owner changed from Adrian Holovaty to Malcolm Tredinnick
    • Property Status newassigned
  • Ticket #3525 – Description

    initial v2  
    33Lets say a function has an optional "id" parameter which defaults to None and below is the patterns pointing that function.
    44
     5{{{
     6#!python
    57(r'^(?P<slug>[-\w]+)/$', views.myfunc),
    68
    79(r'^(?P<slug>[-\w]+)/(?P<id>\d+)/$', views.myfunc),
     10}}}
    811
    912In that case,
    1013
     14{{{
     15#!python
    1116{% url views.myfunc slug=something,id=someint %}
     17}}}
    1218
    1319fails to match anything, where we can expect it to match the second
Back to Top