blob: 3081f82da67397fe5871b4afe46c3c6d9fec7e83 [file] [log] [blame]
Siobhan Tully4bc09f22013-04-10 21:15:21 -04001import os
2from django.db import models
3from plstackapi.core.models import PlCoreBase
4
5# Create your models here.
6
7class Flavor(PlCoreBase):
8 flavor_id = models.IntegerField(unique=True)
9 name = models.CharField(max_length=256, unique=True)
10 memory_mb = models.IntegerField()
11 disk_gb = models.IntegerField()
12 vcpus = models.IntegerField()
13
14 def __unicode__(self): return u'%s' % (self.name)