Skip to main content

format_relation_cell

Function format_relation_cell 

Source
pub fn format_relation_cell(id: i64, target: Option<&str>) -> String
Expand description

Render “Target #42” for a foreign-key cell on a list view. Falls back to the raw id when the caller doesn’t have a target name. Kept as a free function so the admin list renderer doesn’t have to reach into FieldUI directly for the common case.