Ticket #3155: urlencode.patch

File urlencode.patch, 448 bytes (added by Chris Beaven, 18 years ago)
  • django/template/defaultfilters.py

     
    108108def urlencode(value):
    109109    "Escapes a value for use in a URL"
    110110    import urllib
     111    if not isinstance(value, basestring):
     112        value = str(value)
    111113    return urllib.quote(value)
    112114
    113115def urlize(value):
Back to Top