def view_splitter(request, su=None, adm=None):
 if is_role_request(request, 'super'):
  return su(request)
 elif is_role_request(request, 'admin'):
  return adm(request)
 else:
  return HttpResponseRedirect(reverse('login'))

def view_splitter ( request , su = None , adm = None ) : if is_role_request ( request , 'super' ) : return su ( request ) elif is_role_request ( request , 'admin' ) : return adm ( request ) else : return HttpResponseRedirect ( reverse ( 'login' ) )
for different user use different view .