Renamed opennebula_vm_id to opennebula_vm_template_id

This commit is contained in:
M.Ravi 2017-07-26 20:35:12 +02:00
parent 762c8b14cc
commit 71e4fece58

View file

@ -53,9 +53,9 @@ class BetaAccessVM(models.Model):
class VMTemplate(models.Model):
name = models.CharField(max_length=50)
opennebula_vm_id = models.IntegerField()
opennebula_vm_template_id = models.IntegerField()
@classmethod
def create(cls, name, opennebula_vm_id):
vm_template = cls(name=name, opennebula_vm_id=opennebula_vm_id)
def create(cls, name, opennebula_vm_template_id):
vm_template = cls(name=name, opennebula_vm_template_id=opennebula_vm_template_id)
return vm_template