From caef131d7c4ac9e3ff8b739dc33b15af0df2c1eb Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 1 Mar 2020 19:59:22 -0600 Subject: [PATCH] Prefer null over empty string, for vendor contact info --- rattail_corepos/importing/corepos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rattail_corepos/importing/corepos.py b/rattail_corepos/importing/corepos.py index 7d52d23..91b45f0 100644 --- a/rattail_corepos/importing/corepos.py +++ b/rattail_corepos/importing/corepos.py @@ -93,9 +93,9 @@ class VendorImporter(FromCOREPOS, importing.model.VendorImporter): 'name': vendor.name, 'abbreviation': vendor.abbreviation, 'special_discount': special_discount, - 'phone_number': vendor.phone, - 'fax_number': vendor.fax, - 'email_address': vendor.email, + 'phone_number': vendor.phone or None, + 'fax_number': vendor.fax or None, + 'email_address': vendor.email or None, }