diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index 73e3badc..d0532c16 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -901,6 +901,8 @@ class ExportsView(View): def build_erasure_certificate(self): erasures = [] for device in self.find_devices(): + if device.placeholder and device.placeholder.binding: + device = device.placeholder.binding if isinstance(device, Computer): for privacy in device.privacy: erasures.append(privacy) diff --git a/ereuse_devicehub/templates/inventory/erasure_list.html b/ereuse_devicehub/templates/inventory/erasure_list.html index 6495d2d6..f9627966 100644 --- a/ereuse_devicehub/templates/inventory/erasure_list.html +++ b/ereuse_devicehub/templates/inventory/erasure_list.html @@ -63,7 +63,7 @@