Commit 22b91334 authored by Michal Čihař's avatar Michal Čihař

Merge pull request #1019 from mapx/patch-1

Python 3 compatibility fix: dict_keys is not list type in python 3
parents 411683d6 2941c198
...@@ -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