Make string representation of HostingOrder more readable
This commit is contained in:
		
					parent
					
						
							
								f9584b4c82
							
						
					
				
			
			
				commit
				
					
						4a1434c514
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -89,7 +89,9 @@ class HostingOrder(AssignPermissionsMixin, models.Model): | |||
|         ) | ||||
| 
 | ||||
|     def __str__(self): | ||||
|         return "%s" % (self.id) | ||||
|         return "Order Nr: #{} - VM_ID: {} - {} - {}".format( | ||||
|             self.id, self.vm_id, self.customer.user.email, self.created_at | ||||
|         ) | ||||
| 
 | ||||
|     @cached_property | ||||
|     def status(self): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue