From 40c7e34014a53d61111a26cf96490d6ac036d69a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 6 Mar 2019 18:22:12 -0600 Subject: [PATCH] Show grid link even when value is "false-ish" saw a value of '0' get rendered with no link; this fixes --- tailbone/grids/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/grids/core.py b/tailbone/grids/core.py index 50c7171a..6ccead4c 100644 --- a/tailbone/grids/core.py +++ b/tailbone/grids/core.py @@ -1052,7 +1052,7 @@ class CustomWebhelpersGrid(webhelpers2_grid.Grid): if hasattr(record, 'uuid'): attrs['data_uuid'] = record.uuid return HTML.tag('li', tags.link_to(value, url), **attrs) - if self.linked_columns and column_name in self.linked_columns and value: + if self.linked_columns and column_name in self.linked_columns and value != '': url = self.url_generator(record, i) value = tags.link_to(value, url) class_name = 'c{} {}'.format(column_number, column_name)