As an user I want to be able to cancel my VM Plan subscription. As an user I want to be able to receive an email each time that my VM status changes.
This commit is contained in:
parent
82ca7da20a
commit
288be32c5f
13 changed files with 380 additions and 41 deletions
|
|
@ -162,6 +162,10 @@ class VirtualMachinePlan(models.Model):
|
|||
self.save(update_fields=['public_key'])
|
||||
return private_key
|
||||
|
||||
def cancel_plan(self):
|
||||
self.status = self.CANCELED_STATUS
|
||||
self.save(update_fields=['status'])
|
||||
|
||||
|
||||
class HostingOrder(models.Model):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue