示例#1
0
def is_direct(request, organization):
    return pass_direct(request, organization=organization)
示例#2
0
def is_direct(request, organization=None):
    if organization is None:
        organization = get_broker()
    return pass_direct(request, organization=organization)
示例#3
0
def is_direct(request, organization):
    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)
示例#5
0
 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)
示例#6
0
def is_direct(request, organization=None):
    if organization is None:
        organization = get_current_provider()
    return pass_direct(request, organization=organization)
示例#7
0
 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)