---
url: "https://vueda.dev/v3/reference/api/py/vueda.core.views/DynamicObjectView.md"
title: "DynamicObjectView"
---

# DynamicObjectView

## Overview

APIView helper for endpoints that operate on arbitrary registered models.

The request names its target through ``app_label``, ``model``, and an optional ``object_id``.
Resolving an object checks that object's permissions, so an endpoint reads the object's data
only after the object itself has admitted the caller.

## `get_object` {#get_object}

Return the object the request names, or ``None``, after checking its permissions.

### Signature {#get_object-signature}

`get_object(self)`

#### Parameters {#get_object-parameters}

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

### Source {#get_object-source}

`server/vueda/core/views.py:33`

## `get_queryset` {#get_queryset}

### Signature {#get_queryset-signature}

`get_queryset(self)`

#### Parameters {#get_queryset-parameters}

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

### Source {#get_queryset-source}

`server/vueda/core/views.py:23`

## `initial` {#initial}

Runs anything that needs to occur prior to calling the method handler.

### Signature {#initial-signature}

`initial(self, request, args, kwargs)`

#### Parameters {#initial-parameters}

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

### Source {#initial-source}

`server/vueda/core/views.py:41`

## `resolves_object` {#resolves_object}

Whether this request names a concrete object, which ``get_object`` then checks.

### Signature {#resolves_object-signature}

`resolves_object(self)`

#### Parameters {#resolves_object-parameters}

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

#### Returns {#resolves_object-returns}

`bool`

### Source {#resolves_object-source}

`server/vueda/core/views.py:29`

## `permission_classes` {#permission_classes}

## Source

`server/vueda/core/views.py:12`
