Django

Code

Changeset 5077

Show
Ignore:
Timestamp:
04/25/07 05:29:39 (2 years ago)
Author:
mtredinnick
Message:

Fixed #3543 -- Be a bit more tolerant of spaces following the comma
argument separator in the "url" tag.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/template/defaulttags.py

    r5052 r5077  
    957957            if '=' in arg: 
    958958                k, v = arg.split('=', 1) 
     959                k = k.strip() 
    959960                kwargs[k] = parser.compile_filter(v) 
    960961            else: 
  • django/trunk/tests/regressiontests/templates/tests.py

    r5052 r5077  
    695695            # Successes 
    696696            'url01' : ('{% url regressiontests.templates.views.client client.id %}', {'client': {'id': 1}}, '/url_tag/client/1/'), 
    697             'url02' : ('{% url regressiontests.templates.views.client_action client.id,action="update" %}', {'client': {'id': 1}}, '/url_tag/client/1/update/'), 
     697            'url02' : ('{% url regressiontests.templates.views.client_action client.id, action="update" %}', {'client': {'id': 1}}, '/url_tag/client/1/update/'), 
    698698            'url03' : ('{% url regressiontests.templates.views.index %}', {}, '/url_tag/'), 
    699699            'url04' : ('{% url named-client client.id %}', {'client': {'id': 1}}, '/url_tag/named-client/1/'),