Changes between Initial Version and Version 2 of Ticket #3525
- Timestamp:
- Mar 9, 2007, 6:30:52 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3525
- Property Triage Stage Unreviewed → Design decision needed
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #3525 – Description
initial v2 3 3 Lets say a function has an optional "id" parameter which defaults to None and below is the patterns pointing that function. 4 4 5 {{{ 6 #!python 5 7 (r'^(?P<slug>[-\w]+)/$', views.myfunc), 6 8 7 9 (r'^(?P<slug>[-\w]+)/(?P<id>\d+)/$', views.myfunc), 10 }}} 8 11 9 12 In that case, 10 13 14 {{{ 15 #!python 11 16 {% url views.myfunc slug=something,id=someint %} 17 }}} 12 18 13 19 fails to match anything, where we can expect it to match the second