From 4baa3a709543bc72fd00741a27315b1db9004488 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 23 Aug 2018 09:18:55 +0200 Subject: [PATCH] Improve HostingOrder str representation --- hosting/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hosting/models.py b/hosting/models.py index c4de453f..abc4c428 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -89,8 +89,10 @@ class HostingOrder(AssignPermissionsMixin, models.Model): ) def __str__(self): - return "Order Nr: #{} - VM_ID: {} - {} - {}".format( - self.id, self.vm_id, self.customer.user.email, self.created_at + return ("Order Nr: #{} - VM_ID: {} - {} - {} - " + "Specs: {} - Price: {}").format( + self.id, self.vm_id, self.customer.user.email, self.created_at, + self.order_detail, self.price ) @cached_property