hosting/models.py: Fixed bug extracting cc info from dict
This commit is contained in:
parent
eab0c9fac1
commit
75da4a7711
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
self.subscription_id = subscription_object.id
|
self.subscription_id = subscription_object.id
|
||||||
self.last4 = cc_details.last4
|
self.last4 = cc_details.get('last4')
|
||||||
self.cc_brand = cc_details.brand
|
self.cc_brand = cc_details.get('brand')
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
def get_cc_data(self):
|
def get_cc_data(self):
|
||||||
|
|
Loading…
Reference in a new issue