forked from uncloud/uncloud
Fix product activation tests after rebase
This commit is contained in:
parent
83d2cd465d
commit
86775af4c8
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue