upgradeFrom is a ManyToMany relation
smbaker [Fri, 1 Mar 2013 17:55:42 +0000 (09:55 -0800)]
apps/billingsystem/billing/models.py
apps/billingsystem/datamodel.png

index bf24a1a..88347cb 100644 (file)
@@ -9,6 +9,7 @@ class ServiceLevel(models.Model):
     membershipFee = models.IntegerField(default=0)
     membershipFeeMonths = models.IntegerField(default=0)
     upgradeRequiresApproval = models.BooleanField(default=False)
+    upgradeFrom = models.ManyToManyField('self', blank=True, null=True)
     def __unicode__(self):
         return self.name
 
index 7c63d48..32087dd 100644 (file)
Binary files a/apps/billingsystem/datamodel.png and b/apps/billingsystem/datamodel.png differ