apis_core.relations.signals#
Module Contents#
Functions#
This signal looks at the create_relations_to_uris attribute of a model instance. The attribute should contain a dict mapping between a relation name and mapping between they key obj or subj and a list of URIs. The signal then tries to create relations between the instance and the subjects or objects listed in the relation dict mapping. An example for the dict mapping would be: “myapp.livesin” = { |
Data#
API#
- apis_core.relations.signals.logger = 'getLogger(...)'#
- apis_core.relations.signals.copy_relations(sender, instance, duplicate, **kwargs)#
- apis_core.relations.signals.merge_relations(sender, instance, entities, **kwargs)#
- apis_core.relations.signals.set_relations_null(sender, instance, using, origin, **kwargs)#
- apis_core.relations.signals.create_relations(sender, instance, created, raw, using, update_fields, **kwargs)#
This signal looks at the create_relations_to_uris attribute of a model instance. The attribute should contain a dict mapping between a relation name and mapping between they key obj or subj and a list of URIs. The signal then tries to create relations between the instance and the subjects or objects listed in the relation dict mapping. An example for the dict mapping would be: “myapp.livesin” = {
curies = [”https://example.org/123”], obj = “apis_ontology.place”
}