Skip to main content

Module generic_fk

Module generic_fk 

Source
Expand description

Generic foreign-key (GenericObjectRequest) fields, derived from the NetBox OpenAPI schema. Auto-generated by scripts/generate.sh - do not edit.

Constants§

GENERIC_FK_FIELDS
(app_label.model, field) pairs whose write payload is a NetBox GenericObjectRequest (or array of them), and must therefore be encoded as { "object_type": ..., "object_id": ... } rather than a bare id.

Functions§

is_generic_fk
Returns true if field on model (keyed as app_label.model, e.g. "dcim.cable") is a generic foreign key whose value must be wrapped.