From 1e62af56a63ccbea94d8c5f65f51c32d9d42c558 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 3 Mar 2023 16:00:54 +0100 Subject: [PATCH] fix parent --- ereuse_devicehub/templates/inventory/erasure.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ereuse_devicehub/templates/inventory/erasure.html b/ereuse_devicehub/templates/inventory/erasure.html index bbb870b1..76df0694 100644 --- a/ereuse_devicehub/templates/inventory/erasure.html +++ b/ereuse_devicehub/templates/inventory/erasure.html @@ -359,6 +359,7 @@
Data storage:
{{ erasure.device.__format__('ts') }}
+ {% if erasure.parent %}
Computer where was erase:
Title: {{ erasure.parent.__format__('ts') }}
DevicehubID: {{ erasure.parent.dhid }}
@@ -370,6 +371,7 @@
DevicehubID: {{ erasure.device.parent.dhid }}
Hid: {{ erasure.device.parent.hid }}
Tags: {{ erasure.device.parent.tags }}
+ {% endif %}
Erasure:
{{ erasure.__format__('ts') }}