mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-03 14:23:43 +03:00
WIP
This commit is contained in:
parent
7331e63201
commit
4c3a121676
|
@ -8,7 +8,7 @@ jobs:
|
||||||
- image: circleci/python:3.8.0
|
- image: circleci/python:3.8.0
|
||||||
environment:
|
environment:
|
||||||
DJANGO_VERSION: 3.0
|
DJANGO_VERSION: 3.0
|
||||||
DRF: 3.9
|
DRF: 3.11
|
||||||
executor: docker/docker
|
executor: docker/docker
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
from rest_framework.permissions import AllowAny
|
from rest_framework.permissions import AllowAny
|
||||||
from rest_auth.registration.serializers import (
|
from dj_rest_auth.registration.serializers import (
|
||||||
RegisterSerializer as DefaultRegisterSerializer
|
RegisterSerializer as DefaultRegisterSerializer
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ if 'allauth.socialaccount' in settings.INSTALLED_APPS:
|
||||||
from allauth.socialaccount.models import SocialToken
|
from allauth.socialaccount.models import SocialToken
|
||||||
from allauth.socialaccount.providers.oauth.client import OAuthError
|
from allauth.socialaccount.providers.oauth.client import OAuthError
|
||||||
|
|
||||||
from rest_auth.registration.serializers import SocialConnectMixin
|
from dj_rest_auth.registration.serializers import SocialConnectMixin
|
||||||
|
|
||||||
|
|
||||||
class TwitterLoginSerializer(serializers.Serializer):
|
class TwitterLoginSerializer(serializers.Serializer):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user