Rename Resend Verification Email View

- rename ResendVerificationEmail to ResendVerificationEmailView
This commit is contained in:
Bruno Barreto Freitas 2019-04-26 17:58:41 -03:00
parent c16ea36fc5
commit aab8bf4740
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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')