1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Added is_template attribute to instances. If true, instance cannot be started.

This commit is contained in:
Jan Krcmar 2016-01-20 15:40:09 +01:00
parent 4ab8561360
commit 646bdbbe0e
4 changed files with 39 additions and 3 deletions

View file

@ -6,6 +6,7 @@ class Instance(models.Model):
compute = models.ForeignKey(Compute)
name = models.CharField(max_length=20)
uuid = models.CharField(max_length=36)
is_template = models.BooleanField(default=False)
def __unicode__(self):
return self.name