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

13 lines
346 B
Python
Raw Normal View History

from django.db.models import Model, CharField, IntegerField
from django.utils.translation import ugettext_lazy as _
2015-02-27 12:25:41 +00:00
class Flavor(Model):
label = CharField(_('label'), max_length=12)
memory = IntegerField(_('memory'))
vcpu = IntegerField(_('vcpu'))
disk = IntegerField(_('disk'))
2015-02-27 12:25:41 +00:00
def __str__(self):
2015-02-27 12:25:41 +00:00
return self.name