Changeset - a45fcb395ba4
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 9 months ago 2021-11-30 06:35:55
ben@sturm.com.au
Remove problematic call to decode().
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/local_context_processors.py
Show inline comments
...
 
@@ -22,7 +22,7 @@ def sitefundraiser(request):
 
if conservancy.settings.FORCE_CANONICAL_HOSTNAME:
 
    _HOST_URL_VAR = {'host_url': 'https://' + conservancy.settings.FORCE_CANONICAL_HOSTNAME}
 
    def host_url(request):
 
        return _HOST_URL_VAR.decode('utf-8')
 
        return _HOST_URL_VAR
 
else:
 
    def host_url(request):
 
        return {'host_url': request.build_absolute_uri('/').rstrip('/').decode('utf-8')}
0 comments (0 inline, 0 general)