forked from uncloud/uncloud
Minor fixes, DB sync after rebase
This commit is contained in:
parent
0522927c50
commit
e6eba7542b
3 changed files with 39 additions and 2 deletions
|
|
@ -514,7 +514,6 @@ class Bill(models.Model):
|
|||
# A bill is final when its ending date is passed.
|
||||
return self.ending_date < timezone.now()
|
||||
|
||||
<<<<<<< HEAD
|
||||
def activate_products(self):
|
||||
for order in self.order_set.all():
|
||||
# FIXME: using __something might not be a good idea.
|
||||
|
|
@ -523,6 +522,7 @@ class Bill(models.Model):
|
|||
if product.status == UncloudStatus.AWAITING_PAYMENT:
|
||||
product.status = UncloudStatus.PENDING
|
||||
product.save()
|
||||
|
||||
@property
|
||||
def billing_address(self):
|
||||
return self.order.billing_address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue