---
url: "https://vueda.dev/v3/reference/api/py/vueda.vdq.models/AnyMailQueueItemAttachment.md"
title: "AnyMailQueueItemAttachment"
---

# AnyMailQueueItemAttachment

## Overview

AnyMailQueueItemAttachment(id, attachment, filename, mimetype, file_size, content_disposition_is_inline, content_id_string)

## `DoesNotExist` {#DoesNotExist}

The requested object does not exist

### Source {#DoesNotExist-source}

`server/vueda/vdq/models.py`

## `MultipleObjectsReturned` {#MultipleObjectsReturned}

The query returned multiple objects when only one was expected.

### Source {#MultipleObjectsReturned-source}

`server/vueda/vdq/models.py`

## `NotUpdated` {#NotUpdated}

The updated object no longer exists.

### Source {#NotUpdated-source}

`server/vueda/vdq/models.py`

## `content_disposition_is_inline` {#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-signature}

`content_disposition_is_inline(unknown)`

#### Parameters {#content_disposition_is_inline-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="content_disposition_is_inline-param-unknown">unknown</span> |  | yes |  |  |

## `content_id_string` {#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-signature}

`content_id_string(unknown)`

#### Parameters {#content_id_string-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="content_id_string-param-unknown">unknown</span> |  | yes |  |  |

## `file_size` {#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-signature}

`file_size(unknown)`

#### Parameters {#file_size-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="file_size-param-unknown">unknown</span> |  | yes |  |  |

## `filename` {#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-signature}

`filename(unknown)`

#### Parameters {#filename-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="filename-param-unknown">unknown</span> |  | yes |  |  |

## `id` {#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-signature}

`id(unknown)`

#### Parameters {#id-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="id-param-unknown">unknown</span> |  | yes |  |  |

## `mimetype` {#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-signature}

`mimetype(unknown)`

#### Parameters {#mimetype-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="mimetype-param-unknown">unknown</span> |  | yes |  |  |

## `objects` {#objects}

### Signature {#objects-signature}

`objects(unknown)`

#### Parameters {#objects-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="objects-param-unknown">unknown</span> |  | yes |  |  |

## `anymail_queue_items` {#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` {#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:239`
