#4075: The url template tag incorrectly includes the '?' character found in a
urls.py regex when producing urls.
-------------------------------------------------+--------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component:
Template system
Version: SVN | Resolution:
Keywords: url question-mark regex template | Stage:
Accepted
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-------------------------------------------------+--------------------------
Old description:
> The template tag
>
> "{% url example_edit %}"
>
> produces
>
> "http://localhost:8000/wiki/example/add/?"
>
> for the urls.py entry
>
> "url(r'^wiki/example/add/?$', example_edit, name="example_edit")
>
> it should produce
>
> "http://localhost:8000/wiki/example/add/"
>
> since the '?' is a regex operator in this context.
New description:
The template tag
{{{
{% url example_edit %}
}}}
produces
{{{
http://localhost:8000/wiki/example/add/?
}}}
for the urls.py entry
{{{
#!python
url(r'^wiki/example/add/?$', example_edit, name="example_edit")
}}}
it should produce
{{{
http://localhost:8000/wiki/example/add/
}}}
since the '?' is a regex operator in this context.
Comment (by mtredinnick):
Fixed summary formatting.
--
Ticket URL: <http://code.djangoproject.com/ticket/4075#comment:2>
Django Code <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
-~----------~----~----~----~------~----~------~--~---