Person¶
-
class
database.models.Person(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModelA real world person that contributed to a MusicalWork/Section/Part
-
given_name¶ models.CharField – The given name of this Person
-
surname¶ models.CharField – The surname of this Person
-
range_date_birth¶ django.contrib.postgres.fields.DateRangeField – The possible range of dates of the birth of this Person If the date is know, then the beginning and end of range will be equal
-
range_date_death¶ django.contrib.postgres.fields.DateRangeField – The possible range of dates of the death of this Person If the date is know, then the beginning and end of range will be equal
-
birth_location¶ models.ForeignKey – Reference to the GeographicArea where this Person was born
-
death_location¶ models.ForeignKey – Reference to the GeographicArea where this Person died
models.URLField – An URL linking to an authority control description of this Person
models.IntegerField – The identifier of this Person in the authority control
-
contributions¶ models.ManyToOneRel – References to the Contributions made by this Person
-
published¶ models.ManyToOneRel – References to the CollectionsOfSources published by this Person
See also
database.models.CustomBaseModel,database.models.GeographicArea,database.models.Contribution,database.models.CollectionOfSourcesAttributes Summary
authority_control_keyA wrapper for a deferred-loading field. authority_control_urlA wrapper for a deferred-loading field. birth_locationAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. birth_location_idA wrapper for a deferred-loading field. contributionsAccessor to the related objects manager on the reverse side of a many-to-one relation. date_of_birthGet a print friendly version of range_date_birth date_of_deathGet a print friendly version of range_date_death death_locationAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. death_location_idA wrapper for a deferred-loading field. given_nameA wrapper for a deferred-loading field. idA wrapper for a deferred-loading field. nameGet print friendly version of this Person’s name objectsparts_arrangedGet the Parts arranged by this Person parts_authoredGet the Parts authored by this Person parts_composedGet the Parts composed by this Person parts_improvisedGet the Parts improvised by this Person parts_performedGet the Parts performed by this Person parts_transcribedGet the Parts transcribed by this Person publishedAccessor to the related objects manager on the reverse side of a many-to-one relation. range_date_birthA wrapper for a deferred-loading field. range_date_deathA wrapper for a deferred-loading field. sections_arrangedGet the Sections arranged by this Person sections_authoredGet the Sections authored by this Person sections_composedGet the Sections arranged by this Person sections_improvisedGet the Sections improvised by this Person sections_performedGet the Sections performed by this Person sections_transcribedGet the Sections transcribed by this Person surnameA wrapper for a deferred-loading field. works_arrangedGet the MusicalWorks arranged by this Person works_authoredGet the MusicalWorks authored by this Person works_composedGet the MusicalWorks composed by this Person works_improvisedGet the MusicalWorks improvised by this Person works_performedGet the MusicalWorks performed by this Person works_transcribedGet the MusicalWorks transcribed by this Person Methods Summary
get_next_by_date_created(*[, field, is_next])get_next_by_date_updated(*[, field, is_next])get_previous_by_date_created(*[, field, is_next])get_previous_by_date_updated(*[, field, is_next])Attributes Documentation
-
authority_control_key A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
authority_control_url A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
birth_location 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.
-
birth_location_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
contributions 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_forward_many_to_many_manager()defined below.
-
date_of_birth¶ Get a print friendly version of range_date_birth
-
date_of_death¶ Get a print friendly version of range_date_death
-
death_location 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.
-
death_location_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
given_name 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¶ Get print friendly version of this Person’s name
-
objects= <django.db.models.manager.Manager object>¶
-
parts_arranged¶ Get the Parts arranged by this Person
Get the Parts authored by this Person
-
parts_composed¶ Get the Parts composed by this Person
-
parts_improvised¶ Get the Parts improvised by this Person
-
parts_performed¶ Get the Parts performed by this Person
-
parts_transcribed¶ Get the Parts transcribed by this Person
-
published 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_forward_many_to_many_manager()defined below.
-
range_date_birth A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
range_date_death A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
sections_arranged¶ Get the Sections arranged by this Person
Get the Sections authored by this Person
-
sections_composed¶ Get the Sections arranged by this Person
-
sections_improvised¶ Get the Sections improvised by this Person
-
sections_performed¶ Get the Sections performed by this Person
-
sections_transcribed¶ Get the Sections transcribed by this Person
-
surname A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
works_arranged¶ Get the MusicalWorks arranged by this Person
Get the MusicalWorks authored by this Person
-
works_composed¶ Get the MusicalWorks composed by this Person
-
works_improvised¶ Get the MusicalWorks improvised by this Person
-
works_performed¶ Get the MusicalWorks performed by this Person
-
works_transcribed¶ Get the MusicalWorks transcribed by this Person
Methods Documentation
-
get_next_by_date_created(*, field=<django.db.models.fields.DateTimeField: date_created>, is_next=True, **kwargs)¶
-
get_next_by_date_updated(*, field=<django.db.models.fields.DateTimeField: date_updated>, is_next=True, **kwargs)¶
-
get_previous_by_date_created(*, field=<django.db.models.fields.DateTimeField: date_created>, is_next=False, **kwargs)¶
-
get_previous_by_date_updated(*, field=<django.db.models.fields.DateTimeField: date_updated>, is_next=False, **kwargs)¶
-