def is_direct(request, organization): return pass_direct(request, organization=organization)
def is_direct(request, organization=None): if organization is None: organization = get_broker() return pass_direct(request, organization=organization)
def is_direct(request, organization=None): if organization is None: organization = get_current_provider() return pass_direct(request, organization=organization)
def get(self, request, *args, **kwargs): provider = get_current_provider() if pass_direct(request, organization=provider): kwargs.update({self.slug_url_kwarg: provider}) return RedirectView.get(self, request, *args, **kwargs) return super(ProviderRedirectView, self).get(request, *args, **kwargs)
def get(self, request, *args, **kwargs): provider = get_broker() if pass_direct(request, organization=provider): kwargs.update({self.slug_url_kwarg: provider}) return RedirectView.get(self, request, *args, **kwargs) return super(ProviderRedirectView, self).get(request, *args, **kwargs)