From afdba3d7d9de49395e008c3e860e8799aab47843 Mon Sep 17 00:00:00 2001 From: meow Date: Mon, 2 Mar 2020 17:17:30 +0500 Subject: [PATCH] Remove duplicate code --- uncloud/uncloud_vm/models.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/uncloud/uncloud_vm/models.py b/uncloud/uncloud_vm/models.py index e59d5d2..e54c4ea 100644 --- a/uncloud/uncloud_vm/models.py +++ b/uncloud/uncloud_vm/models.py @@ -19,18 +19,6 @@ STATUS_CHOICES = ( 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): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)