AnyMailQueueItemAttachment
Overview
AnyMailQueueItemAttachment(id, attachment, filename, mimetype, file_size, content_disposition_is_inline, content_id_string)
DoesNotExist
The requested object does not exist
Source
server/vueda/vdq/models.py
MultipleObjectsReturned
The query returned multiple objects when only one was expected.
Source
server/vueda/vdq/models.py
str {#str}
Return str(self).
Signature {#str-signature}
__str__(self)
Parameters {#str-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
Source {#str-source}
server/vueda/vdq/models.py:238
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 |
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Signature
id(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
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 |
objects
Signature
objects(unknown)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| unknown | yes |
_meta
anymail_queue_items
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example::
class Pizza(Model):
toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.
Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.
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)
Source
server/vueda/vdq/models.py:232