'Check that user signup is allowed before even bothering to
dispatch or do other processing.'

@method_decorator(sensitive_post_parameters('password1', 'password2'))
def dispatch(self, request, *args, **kwargs):

    if (not self.registration_allowed()):
        return redirect(self.disallowed_url)
    return super(RegistrationView, self).dispatch(request, *args, **kwargs)
