Prefer null over empty string, for vendor contact info

This commit is contained in:
Lance Edgar 2020-03-01 19:59:22 -06:00
parent 68a0781795
commit caef131d7c

View file

@ -93,9 +93,9 @@ class VendorImporter(FromCOREPOS, importing.model.VendorImporter):
'name': vendor.name, 'name': vendor.name,
'abbreviation': vendor.abbreviation, 'abbreviation': vendor.abbreviation,
'special_discount': special_discount, 'special_discount': special_discount,
'phone_number': vendor.phone, 'phone_number': vendor.phone or None,
'fax_number': vendor.fax, 'fax_number': vendor.fax or None,
'email_address': vendor.email, 'email_address': vendor.email or None,
} }