(project_id, rel_name, class_name, class_is_b=True)
return cici_q
Returns a list of all classes, that have a certain relationship
    to a particular class in a project's semantic space.
Returns a list of all classes, that have a certain relationship
    to a particular class in a project's semantic space.
Returns a list of all classes that have a certain relationship to a particular class in a project s semantic space .
def get_class_links_qs(project_id, rel_name, class_name, class_is_b=True):
    """ Returns a list of all classes, that have a certain relationship
    to a particular class in a project's semantic space.
    """
    relation = Relation.objects.filter(relation_name=rel_name,
        project_id=project_id)
    other_class = Class.objects.filter(class_name=class_name,
        project_id=project_id)
    # Get all classes with the given relation to the given class
    # (if present).
    if class_is_b:
        cici_q = ClassClass.objects.filter(project_id=project_id,
            relation__in=relation, class_b__in=other_class)
    else:
        cici_q = ClassClass.objects.filter(project_id=project_id,
            relation__in=relation, class_a__in=other_class)
    return cici_q
def get_class_links_qs ( project_id , rel_name , class_name , class_is_b = True ) : relation = Relation . objects . filter ( relation_name = rel_name , project_id = project_id ) other_class = Class . objects . filter ( class_name = class_name , project_id = project_id ) # Get all classes with the given relation to the given class # (if present). if class_is_b : cici_q = ClassClass . objects . filter ( project_id = project_id , relation__in = relation , class_b__in = other_class ) else : cici_q = ClassClass . objects . filter ( project_id = project_id , relation__in = relation , class_a__in = other_class ) return cici_q