vm template prefix

This commit is contained in:
Arvind Tiwari 2018-05-24 03:57:01 +05:30
commit a4ca17e2ed
6 changed files with 58 additions and 10 deletions

View file

@ -9,7 +9,7 @@ from djangocms_text_ckeditor.fields import HTMLField
from filer.fields.file import FilerFileField
from filer.fields.image import FilerImageField
from datacenterlight.models import VMPricing
from datacenterlight.models import VMPricing, VMTemplate
class CMSIntegration(models.Model):
@ -299,3 +299,7 @@ class DCLCalculatorPluginModel(CMSPlugin):
help_text='Choose a pricing that will be associated with this '
'Calculator'
)
vm_type = models.CharField(
max_length=50, choices=VMTemplate.VM_TYPE_CHOICES,
default=VMTemplate.PUBLIC
)