#3543: url template tag gives no error if keyword arguments contain spaces
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Template system
Version: SVN | Keywords: url tag urlresolvers space
Stage: Unreviewed | Has_patch: 1
---------------------------------+------------------------------------------
I was stuck for a while using the url template tag with keyword arguments.
The problem was I had a space after the comma delimiting the arguments,
something like:
{% url test.views.check_location country=address.country,
city=address.city %} # bad[[BR]]
{% url test.views.check_location country=address.country,city=address.city
%} # good
The space caused MatchChecker to look for a keyword parameter named '
city' (i.e. with leading space). The pattern didn't match, so I got
nothing. I think an exception might be more helpful, so here's a patch in
case you agree. :)
--
Ticket URL: <http://code.djangoproject.com/ticket/3543>
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
-~----------~----~----~----~------~----~------~--~---