diff --git a/py4web/utils/grid.py b/py4web/utils/grid.py index feada929..a9ae70c8 100644 --- a/py4web/utils/grid.py +++ b/py4web/utils/grid.py @@ -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))