From 50087549e82c8f2b42ea8a6748cc66cbe3f3e472 Mon Sep 17 00:00:00 2001 From: Christopher Grebs Date: Mon, 14 Mar 2016 13:19:06 +0100 Subject: [PATCH] Fix social-adatper tests for allauth>=0.25.0 See https://github.com/pennersr/django-allauth/commit/742d114abf57917d69fbdfd9babf7fd806ddba44 for more details. This unfortunately requires bumping up the version to 0.25.0 --- rest_auth/registration/serializers.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rest_auth/registration/serializers.py b/rest_auth/registration/serializers.py index 2390b05..b25f543 100644 --- a/rest_auth/registration/serializers.py +++ b/rest_auth/registration/serializers.py @@ -60,7 +60,7 @@ class SocialLoginSerializer(serializers.Serializer): if not adapter_class: raise serializers.ValidationError(_('Define adapter_class in view')) - adapter = adapter_class() + adapter = adapter_class(request) app = adapter.get_provider().get_app(request) # More info on code vs access_token diff --git a/setup.py b/setup.py index 9b33b7f..e4e6c1f 100644 --- a/setup.py +++ b/setup.py @@ -33,11 +33,11 @@ setup( 'six>=1.9.0', ], extras_require={ - 'with_social': ['django-allauth>=0.24.1'], + 'with_social': ['django-allauth>=0.25.0'], }, tests_require=[ 'responses>=0.5.0', - 'django-allauth>=0.24.1', + 'django-allauth>=0.25.0', ], test_suite='runtests.runtests', include_package_data=True,