Skip to content

Commit

Permalink
Merge 40810d5 into e6d6ed5
Browse files Browse the repository at this point in the history
  • Loading branch information
st4lk committed Jan 19, 2020
2 parents e6d6ed5 + 40810d5 commit 2811980
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -19,7 +19,7 @@ Requirements
- social-auth-core (>=3.0, <4.0)
- social-auth-app-django (>=3.1, <4.0)
- [optional] djangorestframework-simplejwt (>=4.0.0)
- [optional] django-rest-knox (>=3.2.0, <4.0.0)
- [optional] django-rest-knox (>=4.0.0, <5.0.0)

Release notes
-------------
Expand Down
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Expand Up @@ -3,6 +3,9 @@ rest_social_auth release notes

master
------
- Update supported version of django-rest-knox (>=4.0.0, <5.0.0). v4 has breaking changes.

Issues: #110

v3.0.0
------
Expand Down
2 changes: 1 addition & 1 deletion requirements_optional.txt
@@ -1,3 +1,3 @@
django-rest-knox<4.0.0
django-rest-knox>=4.0.0,<5.0.0
djangorestframework-simplejwt>=4.0.0
djangorestframework-jwt==1.11.0
4 changes: 2 additions & 2 deletions rest_social_auth/serializers.py
Expand Up @@ -54,8 +54,8 @@ def get_token(self, obj):
)
raise

token = AuthToken.objects.create(obj)
return token
token_instance, token_key = AuthToken.objects.create(obj)
return token_key


class UserKnoxSerializer(KnoxSerializer, UserSerializer):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -22,7 +22,7 @@ deps =
social-auth-app-django==3.1.0
djangorestframework-jwt
djangorestframework_simplejwt
django-rest-knox<4.0.0
django-rest-knox<5.0.0
django111: Django>=1.11,<1.12
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
Expand Down

0 comments on commit 2811980

Please sign in to comment.