Skip to content

Commit

Permalink
pass to field.represent(value, row)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Nov 3, 2024
1 parent 9d55a87 commit d8ced23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4web/utils/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def col2key(col):
def compute(row, col=col):
value = row(str(col))
if col.represent:
value = col.represent(value)
value = col.represent(value, row)
# deal with download links in special manner if no representation
if col.type == "upload" and value and col.download_url:
value = A("download", _href=col.download_url(value))
Expand Down

0 comments on commit d8ced23

Please sign in to comment.