- Use correct attribute created_at instead of created_on
- Convert yet another date to str (missed earlier)
This commit is contained in:
PCoder 2019-11-04 11:59:44 +05:30
parent b35a1a9e9b
commit 72741f2188

View file

@ -38,7 +38,7 @@ class Command(BaseCommand):
vm_ids.append(order.vm_id) vm_ids.append(order.vm_id)
order_dict["VM_ID"] = order.vm_id order_dict["VM_ID"] = order.vm_id
order_dict["Order Nr."] = order.id order_dict["Order Nr."] = order.id
order_dict["Created On"] = str(order.created_on) order_dict["Created On"] = str(order.created_at)
order_dict["Price"] = order.price order_dict["Price"] = order.price
order_dict["Payment card details"] = { order_dict["Payment card details"] = {
"last4": order.last4, "last4": order.last4,
@ -82,7 +82,7 @@ class Command(BaseCommand):
"IPv6": vm_detail.ipv6, "IPv6": vm_detail.ipv6,
"OS": vm_detail.configuration, "OS": vm_detail.configuration,
} }
order_dict["Terminated on"] = vm_detail.terminated_at order_dict["Terminated on"] = str(vm_detail.terminated_at)
orders_dict[order.vm_id] = order_dict orders_dict[order.vm_id] = order_dict