diff --git a/uncloud/uncloud_vm/models.py b/uncloud/uncloud_vm/models.py index c523e83..c3c9d38 100644 --- a/uncloud/uncloud_vm/models.py +++ b/uncloud/uncloud_vm/models.py @@ -75,6 +75,11 @@ class VMProduct(Product): else: raise Exception('Invalid recurring period for VM Product pricing.') + def __str__(self): + return "VM {} ({}): {} cores {} gb ram".format(self.uuid, + self.name, + self.cores, + self.ram_in_gb) @property def description(self): return "Virtual machine '{}': {} core(s), {}GB memory".format(