ImageFile¶
-
class
database.models.ImageFile(*args, **kwargs)¶ Bases:
database.models.file.FileA manifestation of a SourceInstantiation as an digital image file.
Manifests one and only one SourceInstantiation.
Generated by an Encoder and validated against a SourceInstantiation by a Validator.
-
file_type¶ models.CharField – The format of this ImageFile
-
file_size¶ models.PositiveIntegerField – The size of the this ImageFile in bytes
-
version¶ models.CharField – The version of the encoding schema of this ImageFile
-
encoding_date¶ models.DateTimeField – The date this ImageFile was encoded
-
encoded_with¶ models.ForeignKey – A reference to the Encoder of this ImageFile
-
validated_by¶ models.ForeignKey – A reference to the Validator of this ImageFile
-
extra_metadata¶ django.contrib.postgres.fields.JSONField – Any extra metadata associated with this ImageFile
-
manifests¶ ForeignKey – The SourceInstantiation manifested by this ImageFile
-
files¶ models.FileField – The path to the actual files stored on disk
See also
database.models.File- The super class of ImageFile
database.models.CustomBaseModel,database.models.SourceInstantiation,database.models.Encoder,database.models.ValidatorAttributes Summary
encoded_withAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. filesA wrapper for a deferred-loading field. idA wrapper for a deferred-loading field. manifestsAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. manifests_idA wrapper for a deferred-loading field. objectspagesGets the number of images, which is equal to the number of pages validated_byAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. 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
-
encoded_with 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.
-
files 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.
-
manifests 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.
-
manifests_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
pages¶ Gets the number of images, which is equal to the number of pages
-
validated_by 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.
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)¶
-