Replace django-rest-auth with dj-rest-auth
This commit is contained in:
parent
7a81df8ec1
commit
0629f322c3
6 changed files with 71 additions and 85 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from django.conf.urls import url
|
||||
from django.views.generic import TemplateView
|
||||
from rest_auth import views as rest_auth_views
|
||||
from dj_rest_auth import views as rest_auth_views
|
||||
|
||||
from . import views
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ from django.utils.translation import gettext_lazy as _
|
|||
from django.contrib import auth
|
||||
|
||||
from allauth.account import models as allauth_models
|
||||
from rest_auth.serializers import PasswordResetSerializer as PRS
|
||||
from rest_auth.registration.serializers import RegisterSerializer as RS, get_adapter
|
||||
from dj_rest_auth.serializers import PasswordResetSerializer as PRS
|
||||
from dj_rest_auth.registration.serializers import RegisterSerializer as RS, get_adapter
|
||||
from rest_framework import serializers
|
||||
|
||||
from funkwhale_api.activity import serializers as activity_serializers
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ from django.contrib import auth
|
|||
from django.middleware import csrf
|
||||
|
||||
from allauth.account.adapter import get_adapter
|
||||
from rest_auth import views as rest_auth_views
|
||||
from rest_auth.registration import views as registration_views
|
||||
from dj_rest_auth import views as rest_auth_views
|
||||
from dj_rest_auth.registration import views as registration_views
|
||||
from rest_framework import mixins
|
||||
from rest_framework import viewsets
|
||||
from rest_framework.decorators import action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue