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

11 lines
349 B
Python

from django.db.models import Model, CharField, IntegerField
from django.utils.translation import ugettext_lazy as _
class Flavor(Model):
label = CharField(_('label'), max_length=12)
memory = IntegerField(_('memory'))
vcpu = IntegerField(_('vcpu'))
disk = IntegerField(_('disk'))
def __unicode__(self):
return self.name