rel = db.CIRelation.objects.get(
parent_id=ci2.id,
child_id=ci3.id,
type=db.CI_RELATION_TYPES.HASROLE
)