EncoderValidatorBaseModel¶
-
class
database.models.EncoderValidatorBaseModel(*args, **kwargs)¶ Bases:
database.models.custom_base_model.CustomBaseModelA abstract base model for Encoder and Validator.
-
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
See also
database.models.CustomBaseModel,database.models.Encoder,database.models.Validator,database.models.User,database.models.SoftwareAttributes Summary
notesA wrapper for a deferred-loading field. softwareAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. software_idA wrapper for a deferred-loading field. userAccessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation. user_idA wrapper for a deferred-loading field. work_flow_fileThe descriptor for the file attribute on the model instance. work_flow_textA wrapper for a deferred-loading field. Methods Summary
clean()Enforce the integrity of the relationship to Software or User 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
-
notes A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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.
-
software_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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.
-
user_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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)
-
work_flow_text A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Methods Documentation
-
clean() → None¶ Enforce the integrity of the relationship to Software or User
Ensure that one and only one of Software or User is not null
-
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)¶
-