Skip to content

Commit 388314f

Browse files
author
Mateusz Sikora
committed
fix flake8
1 parent 1b667fa commit 388314f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

rest_auth/registration/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def validate(self, attrs):
8585
)
8686
token = client.get_access_token(code)
8787
access_token = token['access_token']
88-
88+
8989
else:
9090
raise serializers.ValidationError('Incorrect input. access_token or code is required.')
9191

rest_auth/registration/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from allauth.account.utils import complete_signup
1010
from allauth.account import app_settings
1111

12-
from rest_auth.app_settings import UserDetailsSerializer, TokenSerializer
12+
from rest_auth.app_settings import TokenSerializer
1313
from rest_auth.registration.serializers import SocialLoginSerializer
1414
from rest_auth.views import LoginView
1515

rest_auth/serializers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from rest_framework import serializers, exceptions
1313
from rest_framework.authtoken.models import Token
14-
from rest_framework.authtoken.serializers import AuthTokenSerializer
1514
from rest_framework.exceptions import ValidationError
1615

1716

0 commit comments

Comments
 (0)