From aab8bf4740eeaa086a08c3c45197885b428084b8 Mon Sep 17 00:00:00 2001 From: Bruno Barreto Freitas Date: Fri, 26 Apr 2019 17:58:41 -0300 Subject: [PATCH] Rename Resend Verification Email View - rename ResendVerificationEmail to ResendVerificationEmailView --- rest_auth/registration/urls.py | 4 ++-- rest_auth/registration/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rest_auth/registration/urls.py b/rest_auth/registration/urls.py index 57d7e49..3ac727b 100644 --- a/rest_auth/registration/urls.py +++ b/rest_auth/registration/urls.py @@ -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 diff --git a/rest_auth/registration/views.py b/rest_auth/registration/views.py index 54e9d45..3bcd64b 100644 --- a/rest_auth/registration/views.py +++ b/rest_auth/registration/views.py @@ -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')