1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00
webvirtcloud/computes/models.py
2020-06-02 15:34:12 +03:00

13 lines
418 B
Python

from django.db.models import Model, CharField, IntegerField
class Compute(Model):
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()
def __unicode__(self):
return self.hostname