Improve HostingOrder str representation

This commit is contained in:
PCoder 2018-08-23 09:18:55 +02:00
parent 4a1434c514
commit 4baa3a7095

View file

@ -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