mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
Rename Resend Verification Email View
- rename ResendVerificationEmail to ResendVerificationEmailView
This commit is contained in:
parent
c16ea36fc5
commit
aab8bf4740
|
@ -4,12 +4,12 @@ from django.conf.urls import url
|
|||
from .views import (
|
||||
RegisterView,
|
||||
VerifyEmailView,
|
||||
ResendVerificationEmail
|
||||
ResendVerificationEmailView
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', RegisterView.as_view(), name='rest_register'),
|
||||
url(r'^resend-verification-email/$', ResendVerificationEmail.as_view(), name='rest_resend_verification_email'),
|
||||
url(r'^resend-verification-email/$', ResendVerificationEmailView.as_view(), name='rest_resend_verification_email'),
|
||||
url(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
|
||||
# This url is used by django-allauth and empty TemplateView is
|
||||
# defined just to allow reverse() call inside app, for example when email
|
||||
|
|
|
@ -100,7 +100,7 @@ class VerifyEmailView(APIView, ConfirmEmailView):
|
|||
return Response({'detail': _('ok')}, status=status.HTTP_200_OK)
|
||||
|
||||
|
||||
class ResendVerificationEmail(GenericAPIView):
|
||||
class ResendVerificationEmailView(GenericAPIView):
|
||||
serializer_class = ResendVerificationEmailSerializer
|
||||
permission_classes = (AllowAny,)
|
||||
allowed_methods = ('POST', 'OPTIONS', 'HEAD')
|
||||
|
|
Loading…
Reference in New Issue
Block a user