Skip to content

Commit 5008754

Browse files
committed
Fix social-adatper tests for allauth>=0.25.0
See pennersr/django-allauth@742d114 for more details. This unfortunately requires bumping up the version to 0.25.0
1 parent 49ccfe9 commit 5008754

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)