Commit 2941c198 authored by Yuchen Xie's avatar Yuchen Xie

fix error: dict_keys is not list type in python 3

seealso `https://www.python.org/dev/peps/pep-3106/`
parent 411683d6
...@@ -434,7 +434,7 @@ def register(request): ...@@ -434,7 +434,7 @@ def register(request):
else: else:
form = form_class() form = form_class()
backends = load_backends(BACKENDS).keys() backends = list(load_backends(BACKENDS).keys())
# Redirect if there is only one backend # Redirect if there is only one backend
if len(backends) == 1 and backends[0] != 'email': if len(backends) == 1 and backends[0] != 'email':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment