cleanup migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
ed40b21d16
commit
f7b14bf507
22 changed files with 148 additions and 198 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import uuid
|
||||
|
||||
from django.db import models
|
||||
from django.contrib.auth import get_user_model
|
||||
|
||||
|
|
@ -10,13 +8,9 @@ import uncloud_pay.models as pay_models
|
|||
import uncloud_storage.models
|
||||
|
||||
class VMCluster(UncloudModel):
|
||||
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
name = models.CharField(max_length=128, unique=True)
|
||||
|
||||
|
||||
class VMHost(UncloudModel):
|
||||
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
|
||||
# 253 is the maximum DNS name length
|
||||
hostname = models.CharField(max_length=253, unique=True)
|
||||
|
||||
|
|
@ -132,7 +126,7 @@ class VMDiskImageProduct(UncloudModel):
|
|||
)
|
||||
|
||||
def __str__(self):
|
||||
return "VMDiskImage {} ({}): {} gb".format(self.uuid,
|
||||
return "VMDiskImage {} ({}): {} gb".format(self.id,
|
||||
self.name,
|
||||
self.size_in_gb)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue