1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-26 08:05:22 +00:00
webvirtcloud/computes/models.py

14 lines
418 B
Python
Raw Normal View History

from django.db.models import Model, CharField, IntegerField
2015-02-27 08:53:51 +00:00
class Compute(Model):
2020-05-29 13:25:36 +00:00
name = CharField(max_length=64, unique=True)
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()
2015-02-27 08:53:51 +00:00
def __unicode__(self):
2015-03-27 15:12:15 +00:00
return self.hostname