Remove duplicate code

This commit is contained in:
ahmadbilalkhalid 2020-03-02 17:17:30 +05:00
parent 52e74c22cc
commit afdba3d7d9

View file

@ -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)