Support writing None on Shopify identifier
Closes #12760 (grafted from bb238a3b22bac533dcf5c180eefb90390766152b) --HG-- branch : 7.0
This commit is contained in:
1 parent
bedcfce09b
commit
a9dd98cc16
1 file changed
+3
-1
@@ -29,8 +29,10 @@ class IdentifierMixin:
|
||||
|
||||
@classmethod
|
||||
def set_shopify_identifier(cls, records, name, value):
|
||||
if value is not None:
|
||||
value = int(value) - (1 << 63)
|
||||
cls.write(records, {
|
||||
'shopify_identifier_signed': int(value) - (1 << 63),
|
||||
'shopify_identifier_signed': value,
|
||||
})
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user