Skip to main content

is_generic_fk

Function is_generic_fk 

Source
pub fn is_generic_fk(model: &str, field: &str) -> bool
Expand description

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.