1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-02 04:24:16 +00:00
webvirtcloud/computes/models.py

14 lines
423 B
Python
Raw Normal View History

2015-02-27 08:53:51 +00:00
from django.db import models
class Compute(models.Model):
2019-11-08 17:07:02 +00:00
name = models.CharField(max_length=64)
hostname = models.CharField(max_length=64)
2015-02-27 08:53:51 +00:00
login = models.CharField(max_length=20)
password = models.CharField(max_length=14, blank=True, null=True)
2018-07-31 07:15:59 +00:00
details = models.CharField(max_length=50, null=True, blank=True)
2015-02-27 08:53:51 +00:00
type = models.IntegerField()
def __unicode__(self):
2015-03-27 15:12:15 +00:00
return self.hostname