MusicalWork¶
-
class
database.models.MusicalWork(*args, **kwargs)¶ Bases:
database.mixins.file_and_source_info_mixin.FileAndSourceInfoMixin,database.mixins.contribution_info_mixin.ContributionInfoMixin,database.models.custom_base_model.CustomBaseModelA complete work of music
A purely abstract entity that can manifest in differing versions. Divided into Sections. Must have at least one Section. In the case that a MusicalWork is not formally divided into Sections, it has one trivial Section that represents the whole work.
-
variant_titles¶ ArrayField – All the titles commonly attributed to this MusicalWork.
models.ManyToManyField – MusicalWorks that are related to ths MusicalWork
-
genres_as_in_style¶ models.ManyToManyField – References to GenreAsInStyle objects that are the style(s) of this MusicalWork
-
genres_as_in_type¶ models.ManyToManyField – References to GenreAsInType objects that are the type(s) of this MusicalWork
-
_sacred_or_secular¶ models.NullBooleanField – Private property representing whether the MusicalWork is sacred, secular or none of those
models.URLField – An URL linking to an authority control description of this MusicalWork
models.IntegerField – The identifier of this MusicalWork in the authority control
-
contributions¶ models.ManyToOneRel – References to Contributions objects that describe the contributions (and thus the contributors) of this MusicalWork
-
sections¶ models.ManyToOneRel – References to the Sections that are part of this MusicalWork
-
sources¶ models.ManyToOneRel – References to Sources that instantiate this MusicalWork
See also
database.models.CustomBaseModel,database.models.Section,database.models.Part,database.models.Contribution,database.models.GenreAsInStyle,database.models.GenreAsInType,database.models.SourceAttributes Summary
authority_control_keyA wrapper for a deferred-loading field. authority_control_urlA wrapper for a deferred-loading field. contributionsAccessor to the related objects manager on the reverse side of a many-to-one relation. genres_as_in_styleAccessor to the related objects manager on the forward and reverse sides of a many-to-many relation. genres_as_in_typeAccessor to the related objects manager on the forward and reverse sides of a many-to-many relation. idA wrapper for a deferred-loading field. instrumentationGet all the Instruments used in this Musical Work. objectspartsGet all the Parts related to this Musical Work. related_worksAccessor to the related objects manager on the forward and reverse sides of a many-to-many relation. sacred_or_secularGet the sacred_or_secular value as a human friendly string. sectionsAccessor to the related objects manager on the reverse side of a many-to-one relation. source_instantiationsAccessor to the related objects manager on the reverse side of a many-to-one relation. variant_titlesA wrapper for a deferred-loading field. 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.
-
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.
-
genres_as_in_style Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
genres_as_in_type Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_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.
-
instrumentation¶ Get all the Instruments used in this Musical Work.
-
objects= <django.db.models.manager.Manager object>¶
-
parts¶ Get all the Parts related to this Musical Work.
-
related_works Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
sacred_or_secular¶ Get the sacred_or_secular value as a human friendly string.
-
sections 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.
-
source_instantiations¶ 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.
-
variant_titles A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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)¶
-