def get_subproject(request, project, subproject, skip_acl=False):
 subproject = get_object_or_404(SubProject.objects.prefetch(), project__slug=project, slug=subproject)
 if (not skip_acl):
  subproject.check_acl(request)
 return subproject

def get_subproject ( request , project , subproject , skip_acl = False ) : subproject = get_object_or_404 ( SubProject . objects . prefetch ( ) , project__slug = project , slug = subproject ) if ( not skip_acl ) : subproject . check_acl ( request ) return subproject
returns subproject matching parameters .