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 NetBoxGenericObjectRequest(or array of them), and must therefore be encoded as{ "object_type": ..., "object_id": ... }rather than a bare id.
Functions§
- is_
generic_ fk - Returns
trueiffieldonmodel(keyed asapp_label.model, e.g."dcim.cable") is a generic foreign key whose value must be wrapped.