allows registration throttle control

This commit is contained in:
vsevolod kolchinsky 2016-05-05 09:03:34 +03:00
parent 3189a5c7a0
commit 2a0fa1ab4e

View File

@ -28,6 +28,7 @@ class RegisterView(CreateAPIView):
serializer_class = RegisterSerializer
permission_classes = (AllowAny, )
token_model = TokenModel
throttle_scope = 'register_view'
def get_response_data(self, user):
if allauth_settings.EMAIL_VERIFICATION == \