From 41b56312bdaca593c548fbea66cd82b90c6c9f90 Mon Sep 17 00:00:00 2001 From: Chris Chapman Date: Mon, 8 Aug 2022 22:27:47 +0200 Subject: [PATCH] Add braintree prefix to device_data field name issue11584 review419441003 (grafted from 677d2e8a8b723d509aebb04c01ecab9a39d7d541) --HG-- branch : 6.0 --- account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index 98378197e5..90a8bb573d 100644 --- a/account.py +++ b/account.py @@ -99,7 +99,7 @@ class CheckoutMixin: braintree_device_data = fields.Char( "Braintree Device Data", readonly=True, states={ - 'invisible': ~Eval('device_data'), + 'invisible': ~Eval('braintree_device_data'), }) @classmethod @@ -137,7 +137,7 @@ class CheckoutMixin: def braintree_set_nonce(self, nonce, device_data=None): self.braintree_nonce = nonce - self.device_data = device_data + self.braintree_device_data = device_data self.save()