1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00
webvirtcloud/computes/models.py

13 lines
405 B
Python

from django.db.models import Model, CharField, IntegerField
class Compute(Model):
name = CharField(max_length=64)
hostname = CharField(max_length=64)
login = CharField(max_length=20)
password = CharField(max_length=14, blank=True, null=True)
details = CharField(max_length=64, null=True, blank=True)
type = IntegerField()
def __unicode__(self):
return self.hostname