forked from uncloud/uncloud
Versionise API and cleanups
This commit is contained in:
parent
eea654a9f8
commit
927fb20671
5 changed files with 32 additions and 34 deletions
|
|
@ -69,9 +69,6 @@ class VMProduct(Product):
|
|||
cores = models.IntegerField()
|
||||
ram_in_gb = models.FloatField()
|
||||
|
||||
# Optional disk
|
||||
primary_disk = models.ForeignKey('VMDiskProduct', on_delete=models.CASCADE, null=True)
|
||||
|
||||
# Default recurring price is PER_MONTH, see uncloud_pay.models.Product.
|
||||
@property
|
||||
def recurring_price(self):
|
||||
|
|
@ -175,6 +172,7 @@ class VMDiskProduct(Product):
|
|||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
|
||||
class VMNetworkCard(models.Model):
|
||||
vm = models.ForeignKey(VMProduct, on_delete=models.CASCADE)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue