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

# AbstractQueueItemAttachment

## Overview

Make subclasses preserve the alters_data attribute on overridden methods.

## `Meta` {#Meta}

### Source {#Meta-source}

`server/vueda/vdq/models.py:191`

## `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 |  |  |

## `get_content` {#get_content}

### Signature {#get_content-signature}

`get_content(self)`

#### Parameters {#get_content-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |

### Source {#get_content-source}

`server/vueda/vdq/models.py:226`

## `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 |  |  |

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

`save(self, kwargs)`

#### Parameters {#save-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |
| <span id="save-param-kwargs">kwargs</span> |  | no |  |  |

### Source {#save-source}

`server/vueda/vdq/models.py:196`

## `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)

## `main_type` {#main_type}

### Source {#main_type-source}

`server/vueda/vdq/models.py:230`

## `sub_type` {#sub_type}

### Source {#sub_type-source}

`server/vueda/vdq/models.py:234`

## Source

`server/vueda/vdq/models.py:172`
