Improve HostingOrder str representation
This commit is contained in:
parent
4a1434c514
commit
4baa3a7095
1 changed files with 4 additions and 2 deletions
|
@ -89,8 +89,10 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
|
||||||
)
|
)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "Order Nr: #{} - VM_ID: {} - {} - {}".format(
|
return ("Order Nr: #{} - VM_ID: {} - {} - {} - "
|
||||||
self.id, self.vm_id, self.customer.user.email, self.created_at
|
"Specs: {} - Price: {}").format(
|
||||||
|
self.id, self.vm_id, self.customer.user.email, self.created_at,
|
||||||
|
self.order_detail, self.price
|
||||||
)
|
)
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
|
Loading…
Reference in a new issue