Software¶
-
class
database.models.Software(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModelA Software that encoded, validated or extracted features from a file.
-
name¶ models.CharField – The name of this Software
-
version¶ models.CharField – The version of this Software
-
configuration_file¶ models.FileField – A file that describes how the Software was configured when performing an encoding, validation or feature extraction task.
-
encoder_set¶ models.ManyToOneRel – References to the instances that this Software was used as an Encoder
-
validator_set¶ models.ManyToOneRel – References to the instances that this Software was used as a Validator
-
extractedfeature_set¶ models.ManyToOneRel – References to the ExtractedFeatures extracted with this Software
Attributes Summary
configuration_fileThe descriptor for the file attribute on the model instance. encoder_setAccessor to the related objects manager on the reverse side of a many-to-one relation. extractedfeature_setAccessor to the related objects manager on the reverse side of a many-to-one relation. idA wrapper for a deferred-loading field. nameA wrapper for a deferred-loading field. objectsvalidator_setAccessor to the related objects manager on the reverse side of a many-to-one relation. versionA 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
-
configuration_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)
-
encoder_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.
-
extractedfeature_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.
-
name 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>¶
-
validator_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.
-
version 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)¶
-