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