Blank foreign key labels now show as hyphens, closes #1086

This commit is contained in:
Simon Willison 2020-11-11 15:37:37 -08:00
commit 2a981e2ac1
6 changed files with 73 additions and 37 deletions

View file

@ -195,7 +195,7 @@ class RowTableShared(DataView):
table=urllib.parse.quote_plus(other_table),
link_id=urllib.parse.quote_plus(str(value)),
id=str(jinja2.escape(value)),
label=str(jinja2.escape(label)),
label=str(jinja2.escape(label)) or "-",
)
)
elif value in ("", None):