Changes between Initial Version and Version 2 of Ticket #3525


Ignore:
Timestamp:
03/09/2007 06:30:52 AM (8 years ago)
Author:
mtredinnick
Comment:

Yep. A bug.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3525

    • Property Status changed from new to assigned
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Owner changed from adrian to mtredinnick
    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Design decision needed
  • 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