Changeset 6033422 in tailbone


Ignore:
Timestamp:
03/06/19 21:03:43 (9 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
4a9b528
Parents:
40c7e34
git-author:
Lance Edgar <ledgar@…> (03/06/19 21:03:23)
git-committer:
Lance Edgar <ledgar@…> (03/06/19 21:03:43)
Message:

Fix grid link logic some more...

should not show link if value is None

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/grids/core.py

    r40c7e34 r6033422  
    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 (
     1056                value is not None and value != ''):
    10561057            url = self.url_generator(record, i)
    10571058            value = tags.link_to(value, url)
Note: See TracChangeset for help on using the changeset viewer.