forked from uncloud/uncloud
In between commit
This commit is contained in:
parent
99a18232aa
commit
41a2f18453
4 changed files with 71 additions and 13 deletions
|
|
@ -173,6 +173,13 @@ class VPNNetwork(Product):
|
|||
|
||||
wireguard_public_key = models.CharField(max_length=48)
|
||||
|
||||
default_recurring_period = RecurringPeriod.PER_YEAR
|
||||
|
||||
@property
|
||||
def recurring_price(self):
|
||||
return 120
|
||||
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
self.network.status = 'free'
|
||||
self.network.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue