Skip to content

Commit 5e4d85b

Browse files
committed
Merge pull request #191 from EnTeQuAk/bugfix/fix-social-login-test
Fix social-adatper tests for allauth>=0.25.0
2 parents 2266723 + 5008754 commit 5e4d85b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rest_auth/registration/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def validate(self, attrs):
6060
if not adapter_class:
6161
raise serializers.ValidationError(_('Define adapter_class in view'))
6262

63-
adapter = adapter_class()
63+
adapter = adapter_class(request)
6464
app = adapter.get_provider().get_app(request)
6565

6666
# More info on code vs access_token

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
'six>=1.9.0',
3434
],
3535
extras_require={
36-
'with_social': ['django-allauth>=0.24.1'],
36+
'with_social': ['django-allauth>=0.25.0'],
3737
},
3838
tests_require=[
3939
'responses>=0.5.0',
40-
'django-allauth>=0.24.1',
40+
'django-allauth>=0.25.0',
4141
],
4242
test_suite='runtests.runtests',
4343
include_package_data=True,

0 commit comments

Comments
 (0)