def _get_assignmentgroup_name(assigmentgroup):
    """
    Returns a string containing the group members of the
    assignmentgroup separated by '-'.
    """
    cands = assigmentgroup.get_candidates()
    cands = cands.replace(", ", "-")
    return cands