blob: 8e7d21fceda34423a8e2c20d8ded4481668564d3 [file] [log] [blame]
Scott Baker3de3e372013-05-10 16:50:44 -07001import os
2from django.db import models
3from core.models import PlCoreBase
4from core.models import Site
5from core.models import DeploymentNetwork
6
7# Create your models here.
8
9class ServiceClass(PlCoreBase):
10 name = models.CharField(max_length=32)
11 description = models.CharField(max_length=255)
12 commitment = models.IntegerField(default=365)
13 membershipFee = models.IntegerField(default=0)
14 membershipFeeMonths = models.IntegerField(default=12)
15 upgradeRequiresApproval = models.BooleanField(default=False)
16 upgradeFrom = models.ManyToManyField('self', blank=True, null=True)
17
18 def __unicode__(self): return u'%s' % (self.name)
19