ViewUpdateOptions
Overview
Required identification.
Properties
app
Django app label that owns the model.
Type: string
Source: client/lib/use/useViewUpdate.js:44
calculatedObjectRules
Rules for deriving calculated objects alongside the instance.
Optional form overrides.
Type: object
Source: client/lib/use/useViewUpdate.js:52
fetchFields
Field names to request from the API; overrides the model config default.
Type: string[]
Source: client/lib/use/useViewUpdate.js:49
formProps
Extra props merged into the FormModel component.
Type: any
Source: client/lib/use/useViewUpdate.js:55
model
Django model name.
Type: string
Source: client/lib/use/useViewUpdate.js:45
pk
Primary key of the instance to fetch and edit.
Optional data-fetching overrides.
Type: string
Source: client/lib/use/useViewUpdate.js:46
redirectAfter
Named view to redirect to after a successful update; null stays on the current page.
Type: "list" | "read"
Source: client/lib/use/useViewUpdate.js:57
relatedObjectRules
Rules for fetching related objects alongside the instance.
Type: object
Source: client/lib/use/useViewUpdate.js:51
submitFields
Field names included in the update submission payload; overrides the model config default.
Type: string[]
Source: client/lib/use/useViewUpdate.js:50
widgetProps
Extra props forwarded to every widget component inside the form.
Type: any
Source: client/lib/use/useViewUpdate.js:56
Source
client/lib/use/useViewUpdate.js:41