Make string representation of HostingOrder more readable

This commit is contained in:
PCoder 2018-08-23 09:07:07 +02:00
parent f9584b4c82
commit 4a1434c514

View file

@ -89,7 +89,9 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
) )
def __str__(self): 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 @cached_property
def status(self): def status(self):