Skip to main content

generic_fk_encoding

Function generic_fk_encoding 

Source
pub fn generic_fk_encoding(
    model: &str,
    field: &str,
) -> Option<GenericFkEncoding>
Expand description

Returns the GenericFkEncoding for field on model (keyed as app_label.model, e.g. "dcim.cable") if it is a generic foreign key.