blob: 3081f82da67397fe5871b4afe46c3c6d9fec7e83 [file] [log] [blame]
import os
from django.db import models
from plstackapi.core.models import PlCoreBase
# Create your models here.
class Flavor(PlCoreBase):
flavor_id = models.IntegerField(unique=True)
name = models.CharField(max_length=256, unique=True)
memory_mb = models.IntegerField()
disk_gb = models.IntegerField()
vcpus = models.IntegerField()
def __unicode__(self): return u'%s' % (self.name)