Adapt recurring price of VM and Matrix to new scheme

This commit is contained in:
fnux 2020-04-13 12:00:59 +02:00
commit f5897ed4b1
2 changed files with 6 additions and 15 deletions

View file

@ -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():