code: def dispatch(self, *args, **kwargs):
          
          if not self.registration_allowed():
              return HttpResponseRedirect(force_text(self.disallowed_url))
          return super(RegistrationView, self).dispatch(*args, **kwargs)
docs: Check that user signup is allowed before even bothering to
          dispatch or do other processing.