(context, target)
return dict(projects=projects, user=user, target=target)
List projects belonging to a specific user
List projects belonging to a specific user
List projects belonging to a specific user
def list_projects(context, target):
    """List projects belonging to a specific user
    """
    user = context["request"].user
    projects = auth.get_project_list(user=target).filter(owner=target)

    # Don't show private projects non owners
    if user != target:
        projects = projects.exclude(privacy=Project.PRIVATE)

    projects = projects.order_by("-rank", "-lastedit_date")

    return dict(projects=projects, user=user, target=target)
def list_projects ( context , target ) : user = context [ "request" ] . user projects = auth . get_project_list ( user = target ) . filter ( owner = target ) # Don't show private projects non owners if user != target : projects = projects . exclude ( privacy = Project . PRIVATE ) projects = projects . order_by ( "-rank" , "-lastedit_date" ) return dict ( projects = projects , user = user , target = target )