Institution Person Python Module

Connects a User with an Institution.

class pacifica.metadata.orm.institution_person.InstitutionPerson(*args, **kwargs)

Relates persons and institution objects.

Attributes:
Name Description
person Link to the Users model
institution Link to the Institutions model
DoesNotExist

alias of InstitutionPersonDoesNotExist

static elastic_mapping_builder(obj)

Build the elasticsearch mapping bits.

from_hash(obj)

Convert the hash into the object.

to_hash(**flags)

Convert the object to a hash.

classmethod where_clause(kwargs)

Where clause for the various elements.