Add auto-links for most grids
probably still missing some yet?
This commit is contained in:
parent
bd3d948bf4
commit
ea7eb47551
18 changed files with 49 additions and 1 deletions
|
@ -977,7 +977,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:
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue