Person¶
-
class
database.models.
Person
(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModel
A 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.CollectionOfSources
Attributes Summary
authority_control_key
A wrapper for a deferred-loading field. authority_control_url
A wrapper for a deferred-loading field. birth_location
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. birth_location_id
A wrapper for a deferred-loading field. contributions
Accessor to the related objects manager on the reverse side of a many-to-one relation. 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. death_location_id
A wrapper for a deferred-loading field. given_name
A wrapper for a deferred-loading field. id
A wrapper for a deferred-loading field. name
Get print friendly version of this Person’s name objects
parts_arranged
Get the Parts arranged by this Person parts_authored
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. range_date_birth
A wrapper for a deferred-loading field. range_date_death
A wrapper for a deferred-loading field. sections_arranged
Get the Sections arranged by this Person sections_authored
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. works_arranged
Get the MusicalWorks arranged by this Person works_authored
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 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.parent
is aForwardManyToOneDescriptor
instance.
-
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.children
is aReverseManyToOneDescriptor
instance.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.parent
is aForwardManyToOneDescriptor
instance.
-
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.children
is aReverseManyToOneDescriptor
instance.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)¶
-