File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 9
9
get_username_max_length )
10
10
from allauth .account .adapter import get_adapter
11
11
from allauth .account .utils import setup_user_email
12
+ from allauth .socialaccount .helpers import complete_social_login
13
+ from allauth .socialaccount .models import SocialAccount
14
+ from allauth .socialaccount .providers .base import AuthProcess
12
15
except ImportError :
13
16
raise ImportError ("allauth needs to be added to INSTALLED_APPS." )
14
17
15
18
from rest_framework import serializers
16
19
from requests .exceptions import HTTPError
17
20
18
- # Import is needed only if we are using social login, in which
19
- # case the allauth.socialaccount will be declared
20
- if 'allauth.socialaccount' in settings .INSTALLED_APPS :
21
- from allauth .socialaccount .helpers import complete_social_login
22
- from allauth .socialaccount .models import SocialAccount
23
- from allauth .socialaccount .providers .base import AuthProcess
24
-
25
21
26
22
class SocialAccountSerializer (serializers .ModelSerializer ):
27
23
"""
Original file line number Diff line number Diff line change 18
18
19
19
setup (
20
20
name = 'django-rest-auth' ,
21
- version = '0.9.2 ' ,
21
+ version = '0.9.3 ' ,
22
22
author = 'Sumit Chachra' ,
23
23
24
24
url = 'http://github.com/Tivix/django-rest-auth' ,
You can’t perform that action at this time.
0 commit comments