Show grid link even when value is "false-ish"
saw a value of '0' get rendered with no link; this fixes
This commit is contained in:
		
							parent
							
								
									75bea75dce
								
							
						
					
					
						commit
						40c7e34014
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar