Minor fixes, DB sync after rebase
This commit is contained in:
parent
0522927c50
commit
e6eba7542b
3 changed files with 39 additions and 2 deletions
|
@ -6,7 +6,7 @@ from django.db import migrations, models
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('uncloud_pay', '0004_auto_20200409_1225'),
|
('uncloud_pay', '0005_auto_20200413_0924'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
File diff suppressed because one or more lines are too long
|
@ -514,7 +514,6 @@ class Bill(models.Model):
|
||||||
# A bill is final when its ending date is passed.
|
# A bill is final when its ending date is passed.
|
||||||
return self.ending_date < timezone.now()
|
return self.ending_date < timezone.now()
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
def activate_products(self):
|
def activate_products(self):
|
||||||
for order in self.order_set.all():
|
for order in self.order_set.all():
|
||||||
# FIXME: using __something might not be a good idea.
|
# FIXME: using __something might not be a good idea.
|
||||||
|
@ -523,6 +522,7 @@ class Bill(models.Model):
|
||||||
if product.status == UncloudStatus.AWAITING_PAYMENT:
|
if product.status == UncloudStatus.AWAITING_PAYMENT:
|
||||||
product.status = UncloudStatus.PENDING
|
product.status = UncloudStatus.PENDING
|
||||||
product.save()
|
product.save()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def billing_address(self):
|
def billing_address(self):
|
||||||
return self.order.billing_address
|
return self.order.billing_address
|
||||||
|
|
Loading…
Reference in a new issue