forked from uncloud/uncloud
Remove duplicate code
This commit is contained in:
parent
52e74c22cc
commit
afdba3d7d9
1 changed files with 0 additions and 12 deletions
|
@ -19,18 +19,6 @@ STATUS_CHOICES = (
|
||||||
|
|
||||||
STATUS_DEFAULT = 'pending'
|
STATUS_DEFAULT = 'pending'
|
||||||
|
|
||||||
from uncloud_pay.models import Product
|
|
||||||
|
|
||||||
STATUS_CHOICES = (
|
|
||||||
('pending', 'Pending'), # Initial state
|
|
||||||
('creating', 'Creating'), # Creating VM/image/etc.
|
|
||||||
('active', 'Active'), # Is usable / active
|
|
||||||
('disabled', 'Disabled'), # Is usable, but cannot be used for new things
|
|
||||||
('unusable', 'Unusable'), # Has some kind of error
|
|
||||||
('deleted', 'Deleted'), # Does not exist anymore, only DB entry as a log
|
|
||||||
)
|
|
||||||
|
|
||||||
STATUS_DEFAULT='pending'
|
|
||||||
|
|
||||||
class VMHost(models.Model):
|
class VMHost(models.Model):
|
||||||
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||||
|
|
Loading…
Reference in a new issue