Begin to introduce a DCL alike view for VMs

This commit is contained in:
Nico Schottelius 2020-03-06 11:10:20 +01:00
commit 263125048d
3 changed files with 67 additions and 0 deletions

View file

@ -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):
"""