Encoder¶
-
class
database.models.Encoder(*args, **kwargs)¶ Bases:
database.models.encoder_validator_base_model.EncoderValidatorBaseModelA User or Software that encoded a file using a specific workflow.
-
work_flow_text¶ models.TextField – A description of the workflow that was used to encode a File
-
work_flow_file¶ models.FileField – A file that describes or defines the workflow that was used to encode or validate a File in the database
-
notes¶ models.TextField – Any extra notes or remarks
-
user¶ models.ForeignKey – The User that encoded a File
-
software¶ models.ForeignKey – The User that encoded a File
-
audiofile_set¶ models.ManyToOneRel – References to AudioFiles that were encoded by this Encoder
-
textfile_set¶ models.ManyToOneRel – References to TextFiles that were encoded by this Encoder
-
imagefile_set¶ models.ManyToOneRel – References to ImageFiles that were encoded by this Encoder
-
symbolicmusicfile_set¶ models.ManyToOneRel – References to SymbolicMusicFiles that were encoded by this Encoder
See also
database.models.CustomBaseModel,database.models.EncoderValidatorBaseModel,database.models.User,database.models.Software,database.models.AudioFile,database.models.TextFile,database.models.ImageFile,database.models.SymbolicMusicFileAttributes Summary
audiofile_setAccessor to the related objects manager on the reverse side of a many-to-one relation. idA wrapper for a deferred-loading field. imagefile_setAccessor to the related objects manager on the reverse side of a many-to-one relation. objectssoftwareAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. symbolicmusicfile_setAccessor to the related objects manager on the reverse side of a many-to-one relation. textfile_setAccessor to the related objects manager on the reverse side of a many-to-one relation. userAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. work_flow_fileThe descriptor for the file attribute on the model instance. 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
-
audiofile_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_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.
-
imagefile_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_forward_many_to_many_manager()defined below.
-
objects= <django.db.models.manager.Manager object>¶
-
software 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.
-
symbolicmusicfile_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_forward_many_to_many_manager()defined below.
-
textfile_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_forward_many_to_many_manager()defined below.
-
user 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_flow_file The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assign a file object on assignment so you can do:
>>> with open('/path/to/hello.world', 'r') as f: ... instance.file = File(f)
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)¶
-