#11835: url template tag doesn't put anything if the keyword argument has ' ', '&', '\' kind of characters -------------------------------+-------------------------------------------- Reporter: manasgarg | Owner: nobody Status: new | Milestone: Component: Template system | Version: 1.1 Keywords: url, template tag | Stage: Unreviewed Has_patch: 0 | -------------------------------+-------------------------------------------- Hello,
I noticed that the url template tag returns blank if any of the keyword arguments has characters which require quoting. The behavior is consistent even if the keyword argument has been quoted. How to reproduce: Let's say, I have the following in url pattern: (r'^images/tags/(?P<tag_name>\w+)$', 'images.views.image_tag_viewer'), Now, when I say: {% url images.views.image_tag_viewer tag_name=tag.name as tag_url %} And if tag.name has any of the special characters (which need to be quoted in a url), tag_url will be set as blank. -- Ticket URL: <http://code.djangoproject.com/ticket/11835> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---