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

# Lookup

## Overview

Abstract base for code/name lookup tables. Provides ``code`` (unique identifier),
``name`` (display label), and a generated ``formatted_name`` field for consistent
display across the API.

## `Meta` {#Meta}

Default Django ``Meta`` base that replaces Django's add/change/view/delete permissions with CRUD names.

### Source {#Meta-source}

`server/vueda/core/models.py:767`

## `code` {#code}

A wrapper for a deferred-loading field. When the value is read from this
object the first time, the query is executed.

### Signature {#code-signature}

`code(unknown)`

#### Parameters {#code-parameters}

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

## `formatted_name` {#formatted_name}

A wrapper for a deferred-loading field. When the value is read from this
object the first time, the query is executed.

### Signature {#formatted_name-signature}

`formatted_name(unknown)`

#### Parameters {#formatted_name-parameters}

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

## `name` {#name}

A wrapper for a deferred-loading field. When the value is read from this
object the first time, the query is executed.

### Signature {#name-signature}

`name(unknown)`

#### Parameters {#name-parameters}

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

## Source

`server/vueda/core/models.py:757`
