Project Instrument Python Module

Project instrument relationship.

class pacifica.metadata.orm.project_instrument.ProjectInstrument(*args, **kwargs)[source]

Relates projects and instrument objects.

Attributes:
Name Description
instrument Link to the Instrument model
relationship Link to the Relationship model
project Link to the Project model
DoesNotExist

alias of ProjectInstrumentDoesNotExist

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
created = <ExtendDateTimeField: ProjectInstrument.created>
deleted = <ExtendDateTimeField: ProjectInstrument.deleted>
from_hash(obj)[source]

Convert the hash into the object.

instrument = <ForeignKeyField: ProjectInstrument.instrument>
instrument_id = <ForeignKeyField: ProjectInstrument.instrument>
project = <ForeignKeyField: ProjectInstrument.project>
project_id = <ForeignKeyField: ProjectInstrument.project>
relationship = <ForeignKeyField: ProjectInstrument.relationship>
relationship_id = <ForeignKeyField: ProjectInstrument.relationship>
to_hash(**flags)[source]

Convert the object to a hash.

updated = <ExtendDateTimeField: ProjectInstrument.updated>
uuid = <UUIDField: ProjectInstrument.uuid>
classmethod where_clause(kwargs)[source]

Where clause for the various elements.