Cleanup VMProduct serializer, add name field to VMProduct

This commit is contained in:
fnux 2020-02-28 15:07:20 +01:00
commit 181005ad6c
2 changed files with 7 additions and 5 deletions

View file

@ -41,6 +41,10 @@ class VMProduct(Product):
null=True)
description = "Virtual Machine"
# VM-specific. The name is only intended for customers: it's a pain te
# remember IDs (speaking from experience as ungleich customer)!
name = models.CharField(max_length=32)
cores = models.IntegerField()
ram_in_gb = models.FloatField()