From 4a1434c514db700a5b7e25d733429ba5f9abc86a Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 23 Aug 2018 09:07:07 +0200 Subject: [PATCH] Make string representation of HostingOrder more readable --- hosting/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosting/models.py b/hosting/models.py index 601568c5..c4de453f 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -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):