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