vmhost: add status field
This commit is contained in:
parent
734c406245
commit
50df7050d6
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,16 @@ class VMHost(models.Model):
|
|||
usable_ram_in_gb = models.FloatField()
|
||||
|
||||
|
||||
status = models.CharField(max_length=32,
|
||||
choices = (
|
||||
('pending', 'Pending'),
|
||||
('active', 'Active'),
|
||||
('unusable', 'Unusable'),
|
||||
),
|
||||
default='pending'
|
||||
)
|
||||
|
||||
|
||||
class VM(models.Model):
|
||||
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
owner = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
|
||||
|
|
Loading…
Reference in a new issue