Skip to content

Commit f7114f9

Browse files
committed
fixed formatting of reference fields in grid
1 parent 99ab0f6 commit f7114f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

py4web/utils/grid.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ def reference_represent(value):
371371
table._format of the referenced table
372372
"""
373373
table = value._table
374-
row = table(row)
374+
row = table(value)
375+
if not row:
376+
return ""
375377
if isinstance(table._format, str):
376378
return table._format % row
377379
elif callable(table._format):

0 commit comments

Comments
 (0)