From 25b0544c2f2c78dbc3bf971d955fda651d7ed5e9 Mon Sep 17 00:00:00 2001 From: blueness Date: Tue, 16 Feb 2016 09:23:57 +0800 Subject: [PATCH] fix is_open_for_signup missing param add a missing param to SocialAccountAdapter.is_open_for_signup --- .../{{cookiecutter.repo_name}}/users/adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/adapter.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/adapter.py index 1d4dda1c..ce8a159d 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/adapter.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/adapter.py @@ -10,5 +10,5 @@ class AccountAdapter(DefaultAccountAdapter): class SocialAccountAdapter(DefaultSocialAccountAdapter): - def is_open_for_signup(self, request): + def is_open_for_signup(self, request, sociallogin): return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)