Fix product activation tests after rebase

This commit is contained in:
fnux 2020-04-18 09:02:33 +02:00
commit 86775af4c8
3 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ class MatrixServiceProduct(Product):
domain = models.CharField(max_length=255, default='domain.tld')
# Default recurring price is PER_MONT, see Product class.
def recurring_price(self):
def recurring_price(self, recurring_period=RecurringPeriod.PER_MONTH):
return self.monthly_managment_fee
@staticmethod
@ -46,8 +46,8 @@ class GenericServiceProduct(Product):
decimal_places=AMOUNT_DECIMALS,
validators=[MinValueValidator(0)])
@property
def recurring_price(self):
def recurring_price(self, recurring_period=RecurringPeriod.PER_MONTH):
# FIXME: handle recurring_period somehow.
return self.custom_recurring_price
@property