Make names more consistent

This commit is contained in:
Nikolay Golub 2015-07-23 22:33:48 +03:00
parent f43a6b8d58
commit a9d2a24011

View File

@ -13,7 +13,7 @@ class SocialLoginSerializer(serializers.Serializer):
request = request._request request = request._request
return request return request
def get_social_account(self, adapter, app, token, response): def get_social_login(self, adapter, app, token, response):
""" """
:param adapter: allauth.socialaccount Adapter subclass. Usually OAuthAdapter or Auth2Adapter :param adapter: allauth.socialaccount Adapter subclass. Usually OAuthAdapter or Auth2Adapter
@ -47,7 +47,7 @@ class SocialLoginSerializer(serializers.Serializer):
token.app = app token.app = app
try: try:
login = self.get_social_account(adapter, app, token, access_token) login = self.get_social_login(adapter, app, token, access_token)
complete_social_login(request, login) complete_social_login(request, login)
except HTTPError: except HTTPError:
raise serializers.ValidationError('Incorrect value') raise serializers.ValidationError('Incorrect value')