@register.filter
def display_url(url):
 url = force_bytes(url, errors='replace')
 return urllib.unquote(url).decode('utf-8', errors='replace')

@ register . filter def display_url ( url ) : url = force_bytes ( url , errors = 'replace' ) return urllib . unquote ( url ) . decode ( 'utf-8' , errors = 'replace' )
display a url like the browser url bar would .