Merge branch 'develop' into feature/hosting_permission
This commit is contained in:
commit
3e6502133e
24 changed files with 638 additions and 61 deletions
|
|
@ -5,6 +5,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||
from django.utils.functional import cached_property
|
||||
|
||||
|
||||
|
||||
from Crypto.PublicKey import RSA
|
||||
from stored_messages.settings import stored_messages_settings
|
||||
|
||||
|
|
@ -172,7 +173,7 @@ class VirtualMachinePlan(AssignPermissionsMixin, models.Model):
|
|||
private_key, public_key = self.generate_RSA()
|
||||
self.public_key = public_key
|
||||
self.save(update_fields=['public_key'])
|
||||
return private_key
|
||||
return private_key, public_key
|
||||
|
||||
def cancel_plan(self):
|
||||
self.status = self.CANCELED_STATUS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue