Merge pull request #76 from eReuse/bigfix/csv-export
adding columns rate when no there are rate
This commit is contained in:
commit
02b18ff115
|
@ -95,6 +95,15 @@ class DeviceRow(OrderedDict):
|
|||
self['RAM Range'] = rate.ram_range.name
|
||||
self['Data Storage Rate'] = rate.data_storage
|
||||
self['Data Storage Range'] = rate.data_storage_range.name
|
||||
else:
|
||||
self['Device Rate'] = ''
|
||||
self['Device Range'] = ''
|
||||
self['Processor Rate'] = ''
|
||||
self['Processor Range'] = ''
|
||||
self['RAM Rate'] = ''
|
||||
self['RAM Range'] = ''
|
||||
self['Data Storage Rate'] = ''
|
||||
self['Data Storage Range'] = ''
|
||||
|
||||
self['Price'] = none2str(device.price)
|
||||
|
||||
|
|
Reference in New Issue