SourceInstantiation¶
-
class
database.models.SourceInstantiation(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModelAn abstract entity defined by the music specified by a particular Source, which corresponds to a particular instantiation of all or part of a Musical Work, Sections or Parts.
Manifested by Audio, Symbolic, Text or Image files.
-
source¶ models.ForeignKey – Reference to the Source instantiated by this SourceInstantiation
-
work¶ models.ForeignKey – Reference to a MusicalWork defined in full by this SourceInstantiation
-
sections¶ models.ManyToManyField – References to Sections defined in full by this SourceInstantiation
-
parts¶ models.ManyToManyField – References to Parts defined in full by this SourceInstantiation
-
manifested_by_audio_files¶ models.ManyToOneRel – References to AudioFiles that manifest this SourceInstantiation
-
manifested_by_text_files¶ models.ManyToOneRel – References to TextFiles that manifest this SourceInstantiation
-
manifested_by_image_files¶ models.ManyToOneRel – References to ImageFiles that manifest this SourceInstantiation
-
manifested_by_sym_files¶ models.ManyToOneRel – References to SymbolicMusicFiles that manifest this SourceInstantiation
See also
database.models.CustomBaseModel,database.models.Source,database.models.SymbolicMusicFile,database.models.TextFile,database.models.ImageFile,database.models.AudioFile,database.models.MusicalWork,database.models.Section,database.models.PartAttributes Summary
idA wrapper for a deferred-loading field. manifested_by_audio_filesAccessor to the related objects manager on the reverse side of a many-to-one relation. manifested_by_image_filesAccessor to the related objects manager on the reverse side of a many-to-one relation. manifested_by_sym_filesAccessor to the related objects manager on the reverse side of a many-to-one relation. manifested_by_text_filesAccessor to the related objects manager on the reverse side of a many-to-one relation. objectspartsAccessor to the related objects manager on the forward and reverse sides of a many-to-many relation. sectionsAccessor to the related objects manager on the forward and reverse sides of a many-to-many relation. sourceAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. source_idA wrapper for a deferred-loading field. workAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. work_idA 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
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
manifested_by_audio_files 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.
-
manifested_by_image_files 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.
-
manifested_by_sym_files 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.
-
manifested_by_text_files 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.
-
objects= <django.db.models.manager.Manager object>¶
-
parts 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.
-
sections 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.
-
source 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_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
work 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.
-
work_id¶ 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)¶
-