forked from uncloud/uncloud
Begin to introduce a DCL alike view for VMs
This commit is contained in:
parent
aa8336b7e4
commit
263125048d
3 changed files with 67 additions and 0 deletions
|
|
@ -127,6 +127,12 @@ class VMDiskImageProduct(models.Model):
|
|||
max_length=32, choices=STATUS_CHOICES, default=STATUS_DEFAULT
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return "VMDiskImage {} ({}): {} gb".format(self.uuid,
|
||||
self.name,
|
||||
self.size_in_gb)
|
||||
|
||||
|
||||
|
||||
class VMDiskProduct(models.Model):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue