caais.models - Canadian Archival Accession Information Standard v1.0 models
Models describing the Canadian Archival Accession Information Standard v1.0.
https://archivescanada.ca/wp-content/uploads/2022/12/CAAIS_2019May15_EN.pdf
Note that there are seven sections of CAAIS that organize the fields by related information. These sections are:
Identity Information Section
Source Information Section
Materials Information Section
Management Information Section
Event Information Section
General Information Section
Control Information Section
The models here are not in the exact order as in the CAAIS document, but each field in the standard is defined in a model.
- class caais.models.AbstractTerm(*args, **kwargs)
Bases:
ModelAn abstract class that can be used to define any term that consists of a name and a description.
- name
The name of the term. Terms must have unique names
- Type:
CharField
- description
A description for the term
- Type:
TextField
- class Meta
Bases:
objectMeta options for the abstract term.
- abstract = False
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class caais.models.AcquisitionMethod(*args, **kwargs)
Bases:
AbstractTermAcquisition Method [CAAIS, Section 1.5].
Definition: The process by which a repository acquires material.
Inherits
AbstractTerm- name
The name of the acquisition method
- Type:
CharField
- description
A description of the acquisition method
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.Status(*args, **kwargs)
Bases:
AbstractTermStatus [CAAIS, Section 1.7].
Definition: The current position of the material with respect to the repository’s workflows and business processes.
Inherits
AbstractTerm- name
The name of the status
- Type:
CharField
- description
A description for the status term
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.Metadata(*args, **kwargs)
Bases:
ModelTop-level container for all CAAIS metadata. Contains all simple non-repeatable fields. Any repeatable field is represented by a separate model with a ForeignKey.
For repeatable fields associated with this model, see:
Identifier[CAAIS, Section 1.2]Access via related with
self.identifiers
ArchivalUnit[CAAIS, Section 1.4]Access via related with
self.archival_units
DispositionAuthority[CAAIS, Section 1.6]Access via related with
self.disposition_authorities
SourceOfMaterial[CAAIS, Section 2.1]Access via related with
self.source_of_materials
PreliminaryCustodialHistory[CAAIS, Section 2.2]Accessible via related with
self.preliminary_custodial_histories
ExtentStatement[CAAIS, Section 3.2]Accessible via related with
self.extent_statements
PreliminaryScopeAndContent[CAAIS, Section 3.3]Accessible via related with
self.preliminary_scope_and_contents
LanguageOfMaterials[CAAIS, Section 3.4]Accessible via related with
self.language_of_materials
StorageLocation[CAAIS, Section 4.1]Accessible via related with
self.storage_locations
Rights[CAAIS, Section 4.2]Accessible via related with
self.rights
PreservationRequirements[CAAIS, Section 4.3]Accessible via related with
self.preservation_requirements
Appraisal[CAAIS, Section 4.4]Accessible via related with
self.appraisals
AssociatedDocumentation[CAAIS, Section 4.5]Accessible via related with
self.associated_documentation
Events[CAAIS, Section 5.1]Accessible via related with
self.events
GeneralNote[CAAIS, Section 6.1]Accessible via related with
self.general_notes
DateOfCreationOrRevision[CAAIS, Section 7.2]Accessible via related with
self.dates_of_creation_or_revision
- repository
Repository [CAAIS, Section 1.1]. Definition: The name of the institution that accepts legal responsibility for the accessioned material.
- Type:
CharField
- accession_title
Accession Title [CAAIS, Section 1.3]. Definition: The name assigned to the material.
- Type:
CharField
- acquisition_method
See
AcquisitionMethod[CAAIS, Section 1.5]- Type:
ForeignKey
- status
See
Status[CAAIS, Section 1.7]- Type:
ForeignKey
- date_of_materials
Date of Materials [CAAIS, Section 3.1]. Definition: A date or date range indicating when the materials were known or thought to have been created.
- Type:
CharField
- date_is_approximate
Date is Approximate: To indicate if the date of materials is approximate or not. This is not a field in CAAIS, but is used to determine whether to format the event_date for AtoM.
- Type:
BooleanField
- rules_or_conventions
Rules or Conventions [CAAIS, Section 7.1]. Definition: The rules, conventions or templates that were used in creating or maintaining the accession record.
- Type:
CharField
- language_of_accession_record
Language of Accession Record [CAAIS, Section 7.2]. Definition: The language(s) and script(s) used to record information in the accession record.
- Type:
CharField
- objects = <django.db.models.manager.ManagerFromMetadataQuerySet object>
- property accession_identifier: str
Return the accession identifier for the metadata.
- repository
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- accession_title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- acquisition_method
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- status
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- date_of_materials
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- date_is_approximate
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- rules_or_conventions
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- language_of_accession_record
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- DATE_PATTERN = '\\d{4}-\\d{2}-\\d{2}'
- parse_event_date_for_atom() tuple[str, date, date]
Parse this metadata’s date of materials into a three-tuple containing an event date for AtoM.
Uses the same start date and end date if only one date is provided. For an invalid date range with at least either a valid start or end date, the valid date is used for both start and end date. The returned text representation of the date in this case is the single valid date.
If the date cannot be parsed, returns a three tuple containing: - CAAIS_UNKNOWN_DATE_TEXT - A date object representing CAAIS_UNKNOWN_START_DATE - A date object representing CAAIS_UNKNOWN_END_DATE
- Returns:
A three-tuple containing the text representation of the date, the earliest date in the range, and the latest date in the range.
- create_flat_representation(version: ExportVersion = ExportVersion.CAAIS_1_0) dict
Convert this model and all related models into a flat dictionary suitable to be written to a CSV or used as the metadata fields for a BagIt bag.
Note that some CAAIS fields do not map well to AtoM fields, so some information is dropped when using an AtoM export version. For maximum compatibility, convert using the CAAIS export version when possible.
- Parameters:
version (ExportVersion) – The flat representation type to export. Can be a CAAIS version or an AtoM version.
- Returns:
A dictionary containing all fields in this model as well as all related models (where possible).
- Return type:
(dict)
- update_accession_id(accession_id: str) None
Update the accession identifier value, if an accession identifier exists.
- Parameters:
accession_id (str) – The new accession identifier
commit (bool) – Saves this model if a change is made if True
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- acquisition_method_id
- appraisals
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- archival_units
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- associated_documentation
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- dates_of_creation_or_revision
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- disposition_authorities
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- events
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- extent_statements
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- general_notes
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- identifiers
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- language_of_materials
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- preliminary_custodial_histories
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- preliminary_scope_and_contents
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- preservation_requirements
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- rights
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- source_of_materials
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- status_id
- storage_locations
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- submission
Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Place.restaurantis aReverseOneToOneDescriptorinstance.
- class caais.models.Identifier(*args, **kwargs)
Bases:
ModelIdentifiers [CAAIS, Section 1.2].
Definition: Alphabetic, numeric, or alpha-numeric codes assigned to accessioned material, parts of the material, or accruals for purposes of unique for purposes of identification.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.identifiers- Type:
ForeignKey
- identifier_type
Identifier Type [CAAIS, Section 1.2.1]. Definition: A term or phrase that characterizes the nature of the identifier
- Type:
CharField
- identifier_value
Identifier Value [CAAIS, Section 1.2.2]. Definition: A code that is assigned to the material to support identification in the course of processes and activities such as acquisition, transfer, ingest, and conservation.
- Type:
CharField
- identifier_note
Identifier Note [CAAIS, Section 1.2.3]. Definition: Additional information about the identifier, including contextual information on the purpose of the identifier.
- Type:
CharField
- objects = <caais.managers.IdentifierManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- identifier_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- identifier_value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- identifier_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.ArchivalUnit(*args, **kwargs)
Bases:
ModelArchival Unit [CAAIS, Section 1.4].
Definition: The archival unit or the aggregate to which the accessioned material belongs.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.archival_units- Type:
ForeignKey
- archival_unit
The text content of CAAIS, Section 1.4.
- Type:
TextField
- objects = <caais.managers.ArchivalUnitManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- archival_unit
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.DispositionAuthority(*args, **kwargs)
Bases:
ModelDisposition Authority [CAAIS, Section 1.6].
Definition: A reference to policies, directives, and agreements that prescribe and allow for the transfer of material to a repository.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.disposition_authorities- Type:
ForeignKey
- disposition_authority
The text content of CAAIS, Section 1.6.
- Type:
TextField
- objects = <caais.managers.DispositionAuthorityManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- disposition_authority
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.SourceType(*args, **kwargs)
Bases:
AbstractTermSource Type [CAAIS, Section 2.1.1].
Definition: A term describing the nature of the source.
Inherits
AbstractTerm- name
The name of the source type
- Type:
CharField
- description
A description of the source type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- source_of_materials
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- class caais.models.SourceRole(*args, **kwargs)
Bases:
AbstractTermSource Role [CAAIS, Section 2.1.4].
Definition: The relationship of the named source to the material.
Inherits
AbstractTerm- name
The name of the source role
- Type:
CharField
- description
A description of the source role
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- source_of_materials
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- class caais.models.SourceConfidentiality(*args, **kwargs)
Bases:
AbstractTermSource Confidentiality [CAAIS, Section 2.1.6].
Definition: An instruction to maintain information about the source in confidence.
Inherits
AbstractTerm- name
The name of the source confidentiality
- Type:
CharField
- description
A description of the source confidentiality
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- source_of_materials
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- class caais.models.SourceOfMaterial(*args, **kwargs)
Bases:
ModelSource of Material [CAAIS, Section 2.1].
Definition: A corporate body, person or family responsible for the creation, use or transfer of the accessioned material.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.source_of_materials- Type:
ForeignKey
- source_type
See
SourceType[CAAIS, Section 2.1.1]- Type:
ForeignKey
- source_name
Source Name [CAAIS, Section 2.1.2]. Definition: The proper name of the source of the material.
- Type:
CharField
- contact_name
An extension of Source Contact Information [CAAIS, Section 2.1.3] The name of the contact person
- Type:
CharField
- job_title
An extension of Source Contact Information [CAAIS, Section 2.1.3] The job title of the contact person
- Type:
CharField
- organization
An extension of Source Contact Information [CAAIS, Section 2.1.3] The organization the source is a member of, or the organization the source is
- Type:
CharField
- phone_number
An extension of Source Contact Information [CAAIS, Section 2.1.3] The phone number the source can be contacted with
- Type:
CharField
- email_address
An extension of Source Contact Information [CAAIS, Section 2.1.3] The email address the source can be contacted with
- Type:
CharField
- address_line_1
An extension of Source Contact Information [CAAIS, Section 2.1.3] The first line of the address where the source resides or operates in
- Type:
CharField
- address_line_2
An extension of Source Contact Information [CAAIS, Section 2.1.3] The second line of the address where the source resides or operates in
- Type:
CharField
- city
An extension of Source Contact Information [CAAIS, Section 2.1.3] The city the source resides or operates in
- Type:
CharField
- region
An extension of Source Contact Information [CAAIS, Section 2.1.3] The region the source resides or operates in, i.e., the province or state
- Type:
CharField
- postal_or_zip_code
An extension of Source Contact Information [CAAIS, Section 2.1.3] The source’s postal or zip code
- Type:
CharField
- country
An extension of Source Contact Information [CAAIS, Section 2.1.3] The country the source resides or operates in
- Type:
CountryField
- source_role
See
SourceRole[CAAIS, Section 2.1.4]- Type:
ForeignKey
- source_note
Source Note [CAAIS, Section 2.1.5]. Definition: An open element to capture any additional information about the source, or circumstances surrounding their role.
- Type:
TextField
- source_confidentiality
See
SourceConfidentiality[CAAIS, Section 2.1.6]- Type:
ForeignKey
- objects = <caais.managers.SourceOfMaterialManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- source_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- source_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- contact_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- job_title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- organization
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- phone_number
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- email_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- address_line_1
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- address_line_2
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- city
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- region
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- postal_or_zip_code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- country
A descriptor for country fields on a model instance. Returns a Country when accessed so you can do things like:
>>> from people import Person >>> person = Person.object.get(name='Chris') >>> person.country.name 'New Zealand' >>> person.country.flag '/static/flags/nz.gif'
- source_role
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- source_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- source_confidentiality
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- get_country_display(*, field=<django_countries.fields.CountryField: country>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- source_confidentiality_id
- source_role_id
- source_type_id
- class caais.models.PreliminaryCustodialHistory(*args, **kwargs)
Bases:
ModelPreliminary Custodial History [CAAIS, Section 2.2].
Definition: Information about the chain of agents, in addition to the creator(s), that have exercised custody or control over the material at all stages in its existence.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.preliminary_custodial_histories- Type:
ForeignKey
- preliminary_custodial_history
The text content of CAAIS, Section 2.2.
- Type:
TextField
- objects = <caais.managers.PreliminaryCustodialHistoryManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- preliminary_custodial_history
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.ExtentType(*args, **kwargs)
Bases:
AbstractTermExtent Type [CAAIS, Section 3.2.1].
Definition: A term that characterizes the nature of each extent statement.
Inherits
AbstractTerm- name
The name of the extent type
- Type:
CharField
- description
A description of the extent type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- extent_statements
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.ContentType(*args, **kwargs)
Bases:
AbstractTermContent Type [CAAIS, Section 3.2.3].
Definition: The type of material contained in the units measured, considered as a form of communication or documentary genre.
Inherits
AbstractTerm- name
The name of the content type
- Type:
CharField
- description
A description of the content type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- extent_statements
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.CarrierType(*args, **kwargs)
Bases:
AbstractTermCarrier Type [CAAIS, Section 3.2.4].
Definition: The physical format of an object that supports or carries archival materials.
Inherits
AbstractTerm- name
The name of the carrier type
- Type:
CharField
- description
A description of the carrier type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- extent_statements
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.ExtentStatement(*args, **kwargs)
Bases:
ModelExtent Statement [CAAIS, Section 3.2].
Definition: The physical or logical quantity and type of material.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.preliminary_custodial_histories- Type:
ForeignKey
- extent_type
See
ExtentType[CAAIS, Section 3.2.1]- Type:
ForeignKey
- quantity_and_unit_of_measure
Quantity and Unit of Measure [CAAIS, Section 3.2.2]. Definition: The number and unit of measure expressing the quantity of the extent.
- Type:
TextField
- content_type
See
ContentType[CAAIS, Section 3.2.3]- Type:
ForeignKey
- carrier_type
See
CarrierType[CAAIS, Section 3.2.4]- Type:
ForeignKey
- extent_note
Extent Note [CAAIS, Section 3.2.5]. Definition: Additional information related to the number and type of units received, retained, or removed not otherwise recorded.
- Type:
TextField
- objects = <caais.managers.ExtentStatementManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- extent_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- quantity_and_unit_of_measure
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- content_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- carrier_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- extent_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- carrier_type_id
- content_type_id
- extent_type_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.PreliminaryScopeAndContent(*args, **kwargs)
Bases:
ModelPreliminary Scope and Content [CAAIS, Section 3.3].
Definition: A preliminary description of the functions and activities that generated the accessioned material as well as information about its arrangement (organizational structure or relationships) and documentary forms.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.preliminary_scope_and_contents- Type:
ForeignKey
- preliminary_scope_and_content
The text content of CAAIS, Section 3.3.
- Type:
TextField
- objects = <caais.managers.PreliminaryScopeAndContentManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- preliminary_scope_and_content
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.LanguageOfMaterial(*args, **kwargs)
Bases:
ModelLanguage of Material [CAAIS, Section 3.4].
Definition: The language(s) and script(s) represented in the accessioned materials.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.language_of_materials- Type:
ForeignKey
- language_of_material
The text content of CAAIS, Section 3.4.
- Type:
TextField
- objects = <caais.managers.LanguageOfMaterialManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- language_of_material
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.StorageLocation(*args, **kwargs)
Bases:
ModelStorage Location [CAAIS, Section 4.1].
Definition: The physical or logical location where the material resides.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.storage_locations- Type:
ForeignKey
- storage_location
The text content of CAAIS, Section 4.1.
- Type:
TextField
- objects = <caais.managers.StorageLocationManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- storage_location
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.RightsType(*args, **kwargs)
Bases:
AbstractTermRights Type [CAAIS, Section 4.2.1].
Definition: A term that characterizes the nature of a rights statement.
Inherits
AbstractTerm- name
The name of the rights type
- Type:
CharField
- description
A description of the rights type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- rights_type
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- class caais.models.Rights(*args, **kwargs)
Bases:
ModelRights [CAAIS, Section 4.2].
Definition: The assertion of one or more rights pertaining to the material.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.rights- Type:
ForeignKey
- rights_type
See
RightsType[CAAIS, Section 4.2.1]- Type:
ForeignKey
- rights_value
Rights Value [CAAIS, Section 4.2.2]. Definition: The parameters and conditions pertaining to the rights statement.
- Type:
TextField
- rights_note
Rights Note [CAAIS, Section 4.2.3]. Definition: Additional information related to the rights statement not otherwise recorded.
- Type:
TextField
- objects = <caais.managers.RightsManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- rights_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- rights_value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- rights_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- rights_type_id
- class caais.models.PreservationRequirementsType(*args, **kwargs)
Bases:
AbstractTermPreservation Requirements Type [CAAIS, Section 4.3.1].
Definition: A description of the material’s physical state, dependency or preservation concerns identified.
Inherits
AbstractTerm- name
The name of the preservation requirements type
- Type:
CharField
- description
A description of the preservation requirements type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- preservation_requirements
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- class caais.models.PreservationRequirements(*args, **kwargs)
Bases:
ModelPreservation Requirements [CAAIS, Section 4.3].
Definition: Information about physical condition and / or logical dependencies that need to be addressed by the repository to ensure the long-term preservation of the materials.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.preservation_requirements- Type:
ForeignKey
- preservation_requirements_type
See
PreservationRequirementsType[CAAIS, Section 4.3.1]- Type:
ForeignKey
- preservation_requirements_value
Preservation Requirements Value [CAAIS, Section 4.3.2]. Definition: A description of the material’s physical state, dependency or preservation concerns identified.
- Type:
TextField
- preservation_requirements_note
Preservation Requirements Note [CAAIS, Section 4.3.3]. Definition: Additional information related to the preservation requirement not otherwise recorded.
- Type:
TextField
- objects = <caais.managers.PreservationRequirementsManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- preservation_requirements_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- preservation_requirements_value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- preservation_requirements_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- preservation_requirements_type_id
- class caais.models.AppraisalType(*args, **kwargs)
Bases:
AbstractTermAppraisal Type [CAAIS, Section 4.4.1].
Definition: A term that characterizes the nature of the appraisal.
Inherits
AbstractTerm- name
The name of the appraisal type
- Type:
CharField
- description
A description of the appraisal type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- appraisals
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.Appraisal(*args, **kwargs)
Bases:
ModelAppraisal [CAAIS, Section 4.4].
Definition: Information about the assessment of value of the materials accessioned.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.appraisals- Type:
ForeignKey
- appraisal_type
See
AppraisalType[CAAIS, Section 4.4.1]- Type:
ForeignKey
- appraisal_value
Appraisal Value [CAAIS, Section 4.4.2]. Definition: A statement identifying any decisions made on the appraisal and selection of material, or outlining monetary appraisal details.
- Type:
TextField
- appraisal_note
Appraisal Note [CAAIS, Section 4.4.3]. Definition: Additional information related to the appraisal not otherwise recorded.
- Type:
TextField
- objects = <caais.managers.AppraisalManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- appraisal_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- appraisal_value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- appraisal_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- appraisal_type_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.AssociatedDocumentationType(*args, **kwargs)
Bases:
AbstractTermAssociated Documentation Type [CAAIS, Section 4.5.1].
Definition: A term that characterizes the nature of the appraisal.
Inherits
AbstractTerm- name
The name of the associated documentation type
- Type:
CharField
- description
A description of the associated documentation type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- associated_documentation
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.AssociatedDocumentation(*args, **kwargs)
Bases:
ModelAssociated Documentation [CAAIS, Section 4.5].
Definition: A reference to any documentation related to the material in the accession.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.appraisals- Type:
ForeignKey
- associated_documentation_type
See
AssociatedDocumentationType[CAAIS, Section 4.5.1]- Type:
ForeignKey
- associated_documentation_title
Associated Documentation Title [CAAIS, Section 4.5.2]. Definition: Name of the documentation related to the accessioned material
- Type:
TextField
- associated_documentation_note
Associated Documentation Note [CAAIS, Section 4.5.3]. Definition: Additional information related to associated documentation not otherwise recorded
- Type:
TextField
- objects = <caais.managers.AssociatedDocumentationManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- associated_documentation_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- associated_documentation_title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- associated_documentation_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- associated_documentation_type_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.EventType(*args, **kwargs)
Bases:
AbstractTermEvent Type [CAAIS, Section 5.1.1].
Definition: A term that characterizes the type of event documented in the accession process.
Inherits
AbstractTerm- name
The name of the event type
- Type:
CharField
- description
A description of the event type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- event_type
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.Event(*args, **kwargs)
Bases:
ModelEvent [CAAIS, Section 5.1].
Definition: The actions taken by repository staff throughout the accession process.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.events- Type:
ForeignKey
- event_type
See
EventType[CAAIS, Section 5.1.1]- Type:
ForeignKey
- event_date
Event Date [CAAIS, Section 5.1.2]. Definition: The calendar date on which the event occurred. Time is automatically set to the current time when a new
Eventis created.- Type:
DateTimeField
- event_agent
Event Agent [CAAIS, Section 5.1.3]. Definition: The repository staff member responsible for the event.
- Type:
TextField
- event_note
Event Note [CAAIS, Section 5.1.4]. Definition: Additional information related to the event not otherwise recorded.
- Type:
TextField
- objects = <caais.managers.EventManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- event_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- event_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- event_agent
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- event_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- event_type_id
- get_next_by_event_date(*, field=<django.db.models.fields.DateTimeField: event_date>, is_next=True, **kwargs)
- get_previous_by_event_date(*, field=<django.db.models.fields.DateTimeField: event_date>, is_next=False, **kwargs)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.GeneralNote(*args, **kwargs)
Bases:
ModelGeneral Note [CAAIS, Section 6.1].
Definition: Additional information relating to the accession process or material that is not otherwise captured.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.general_notes- Type:
ForeignKey
- general_note
The text content of CAAIS, Section 6.1.
- Type:
TextField
- objects = <caais.managers.GeneralNoteManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- general_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id
- class caais.models.CreationOrRevisionType(*args, **kwargs)
Bases:
AbstractTermCreation or Revision Type [CAAIS, Section 7.2.1].
Definition: A term characterizing the nature of the action applied to the accession record.
Inherits
AbstractTerm- name
The name of the creation or revision type
- Type:
CharField
- description
A description of the creation or revision type
- Type:
TextField
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- dates_of_creation_or_revision
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_reverse_many_to_one_manager()defined below.
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>
- class caais.models.DateOfCreationOrRevision(*args, **kwargs)
Bases:
ModelDate of Creation or Revision [CAAIS, Section 7.2].
Definition: Date(s) on which the accession record was created or revised.
- metadata
Link to
Metadataobject. Access instances of this model withmetadata.dates_of_creation_or_revision- Type:
ForeignKey
- creation_or_revision_type
See
CreationOrRevisionType[CAAIS, Section 7.2.1]- Type:
ForeignKey
- creation_or_revision_date
Creation or Revision Date [CAAIS, Section 7.2.2]. Definition: The date on which the action was applied to the accession record. Time is automatically set to the current time when a new
DateOfCreationOrRevisionis created.- Type:
DateTimeField
- creation_or_revision_agent
Creation or Revision Agent [CAAIS, Section 7.2.3]. Definition: The repository staff member responsible for the action applied to the accession record.
- Type:
CharField
- creation_or_revision_note
Creation or Revision Note [CAAIS, Section 7.2.4]. Definition: Additional information describing the action performed on the accession record.
- Type:
TextField
- objects = <caais.managers.DateOfCreationOrRevisionManager object>
- metadata
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- creation_or_revision_type
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- creation_or_revision_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- creation_or_revision_agent
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- creation_or_revision_note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- creation_or_revision_type_id
- get_next_by_creation_or_revision_date(*, field=<django.db.models.fields.DateTimeField: creation_or_revision_date>, is_next=True, **kwargs)
- get_previous_by_creation_or_revision_date(*, field=<django.db.models.fields.DateTimeField: creation_or_revision_date>, is_next=False, **kwargs)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- metadata_id