mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-08 21:34:36 +00:00
Initial commit
This commit is contained in:
11
instances/models.py
Normal file
11
instances/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.db import models
|
||||
from computes.models import Compute
|
||||
|
||||
|
||||
class Instance(models.Model):
|
||||
compute = models.ForeignKey(Compute)
|
||||
name = models.CharField(max_length=20)
|
||||
uuid = models.CharField(max_length=36)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
Reference in New Issue
Block a user