mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Don't show 'None' as label for nullable foreign key, closes #406
This commit is contained in:
parent
ed57e4f990
commit
14da70525b
4 changed files with 25 additions and 5 deletions
|
|
@ -637,7 +637,7 @@ class TableView(RowTableShared):
|
|||
new_row = CustomRow(columns)
|
||||
for column in row.keys():
|
||||
value = row[column]
|
||||
if (column, value) in expanded_labels:
|
||||
if (column, value) in expanded_labels and value is not None:
|
||||
new_row[column] = {
|
||||
"value": value,
|
||||
"label": expanded_labels[(column, value)],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue