AbstractQueueItemAttachment
Overview
Make subclasses preserve the alters_data attribute on overridden methods.
Meta
Source
server/vueda/vdq/models.py:184
content_disposition_is_inline
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
content_disposition_is_inline(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
content_id_string
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
content_id_string(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
file_size
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
file_size(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
filename
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
filename(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
get_content
Signature
get_content(self)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
Source
server/vueda/vdq/models.py:219
mimetype
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
mimetype(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
save
Save the current instance. Override this in a subclass if you want to control the saving process.
The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
Signature
save(self, args, kwargs)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| args | yes | ||
| kwargs | yes |
Source
server/vueda/vdq/models.py:205
_meta
attachment
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') as f:
... instance.file = File(f)
main_type
Source
server/vueda/vdq/models.py:223
sub_type
Source
server/vueda/vdq/models.py:227
Source
server/vueda/vdq/models.py:165