Changeset 40c7e34 in tailbone for tailbone/grids/core.py


Ignore:
Timestamp:
03/06/19 18:22:12 (5 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
6033422
Parents:
75bea75
Message:

Show grid link even when value is "false-ish"

saw a value of '0' get rendered with no link; this fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/grids/core.py

    r75bea75 r40c7e34  
    10531053                attrs['data_uuid'] = record.uuid
    10541054            return HTML.tag('li', tags.link_to(value, url), **attrs)
    1055         if self.linked_columns and column_name in self.linked_columns and value:
     1055        if self.linked_columns and column_name in self.linked_columns and value != '':
    10561056            url = self.url_generator(record, i)
    10571057            value = tags.link_to(value, url)
Note: See TracChangeset for help on using the changeset viewer.