forked from uncloud/uncloud
Adapt recurring price of VM and Matrix to new scheme
This commit is contained in:
parent
14f59430bb
commit
f5897ed4b1
2 changed files with 6 additions and 15 deletions
|
|
@ -15,11 +15,9 @@ class MatrixServiceProduct(Product):
|
|||
)
|
||||
domain = models.CharField(max_length=255, default='domain.tld')
|
||||
|
||||
def recurring_price(self, recurring_period=RecurringPeriod.PER_MONTH):
|
||||
if recurring_period == RecurringPeriod.PER_MONTH:
|
||||
return self.monthly_managment_fee
|
||||
else:
|
||||
raise Exception('Invalid recurring period for VM Product pricing.')
|
||||
# Default recurring price is PER_MONT, see Product class.
|
||||
def recurring_price(self):
|
||||
return self.monthly_managment_fee
|
||||
|
||||
@staticmethod
|
||||
def base_image():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue