Added VM detail page, Added VM setting page, Added VM pricing page,Added VM orders page, Added VM status page
This commit is contained in:
		
					parent
					
						
							
								539117741e
							
						
					
				
			
			
				commit
				
					
						a99ea335c8
					
				
			
		
					 9 changed files with 226 additions and 20 deletions
				
			
		|  | @ -90,6 +90,15 @@ class VirtualMachinePlan(models.Model): | |||
|     def hosting_company_name(self): | ||||
|         return self.vm_type.get_hosting_company_display() | ||||
| 
 | ||||
|     @cached_property | ||||
|     def name(self): | ||||
|         name = 'vm-%s' % self.id | ||||
|         return name | ||||
| 
 | ||||
|     @cached_property | ||||
|     def orders(self): | ||||
|         return [self.hostingorder] | ||||
| 
 | ||||
|     @classmethod | ||||
|     def create(cls, data, user): | ||||
|         instance = cls.objects.create(**data) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue