mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Instance.created added. means the creation (clone) of machine. dafaults auto_now_add=True
This commit is contained in:
parent
80c023f2f3
commit
ede9bb6b10
2 changed files with 22 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ class Instance(models.Model):
|
|||
name = models.CharField(max_length=20)
|
||||
uuid = models.CharField(max_length=36)
|
||||
is_template = models.BooleanField(default=False)
|
||||
created = models.DateField(auto_now_add=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue