mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
11 lines
349 B
Python
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
|