Changeset 5273
- Timestamp:
- 05/16/07 20:19:03 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/django/template/defaultfilters.py
r5223 r5273 171 171 "Escapes a value for use in a URL" 172 172 import urllib 173 return smart_unicode(urllib.quote( value))173 return smart_unicode(urllib.quote(smart_str(value))) 174 174 urlencode = stringfilter(urlencode) 175 175 django/branches/unicode/tests/regressiontests/defaultfilters/tests.py
r5056 r5273 116 116 >>> urlencode(1) 117 117 u'1' 118 118 >>> urlencode(u'S\xf8r-Tr\xf8ndelag') 119 u'S%C3%B8r-Tr%C3%B8ndelag' 119 120 120 121 >>> urlizetrunc(u'http://short.com/', 20)
