Fix encoding error for consent form on python3
The form was rendering this as "b'01234....'". -- richvdhpull/4163/head
parent
264cb14402
commit
2b075fb03a
|
@ -160,7 +160,9 @@ class ConsentResource(Resource):
|
|||
try:
|
||||
self._render_template(
|
||||
request, "%s.html" % (version,),
|
||||
user=username, userhmac=userhmac, version=version,
|
||||
user=username,
|
||||
userhmac=userhmac.decode('ascii'),
|
||||
version=version,
|
||||
has_consented=has_consented, public_version=public_version,
|
||||
)
|
||||
except TemplateNotFound:
|
||||
|
|
Loading…
Reference in New Issue