

def similarity_for_objects(self, object_target, object_target_site, object_related, object_related_site):
    object_ctype_id = self.get_ctype_id_for_obj(object_target)
    object_id = object_target.id
    related_object_ctype_id = self.get_ctype_id_for_obj(object_related)
    related_object_id = object_related.id
    return dict(object_ctype=object_ctype_id, object_id=object_id, object_site=object_target_site.id, related_object_ctype=related_object_ctype_id, related_object_id=related_object_id, related_object_site=object_related_site.id)

dataset/ETHPy150Open fcurella/django-recommends/recommends/managers.py DictStorageManager.similarity_for_objects/original