ObjectRevisionField
Overview
Publishes the annotated revision as app_label.Model:event_id.
Null when the object has no events yet, which is what a row written before its model was tracked looks like. It names the tracked model rather than the event model, so the value stays stable if the backend's own naming changes.
__init__
When a field is instantiated, we store the arguments that were used, so that we can present a helpful representation of the object.
Signature
__init__(args, kwargs)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| args | no | |||
| kwargs | no |
Source
.venv/lib/python3.12/site-packages/rest_framework/fields.py:615
to_representation
Transform the outgoing native value into primitive data.
Signature
to_representation(self, instance)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| instance | yes |
Source
server/vueda/history/revision.py:99
Source
server/vueda/history/revision.py:83