From e81ed716ecb6b2a14522dfcc900cd2052f9f44d6 Mon Sep 17 00:00:00 2001 From: Maxim Kukhtenkov Date: Wed, 21 Dec 2016 11:31:04 -0800 Subject: [PATCH] Add `verification e-mail sent` message #240 --- rest_auth/registration/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_auth/registration/views.py b/rest_auth/registration/views.py index 0ce0b5e..427a0eb 100644 --- a/rest_auth/registration/views.py +++ b/rest_auth/registration/views.py @@ -32,7 +32,7 @@ class RegisterView(CreateAPIView): def get_response_data(self, user): if allauth_settings.EMAIL_VERIFICATION == \ allauth_settings.EmailVerificationMethod.MANDATORY: - return {} + return {"detail": _("Verification e-mail sent")} if getattr(settings, 'REST_USE_JWT', False): data = {