From 2b5ff4cb2f11651333fc1c539685e3d6a8219dfb Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 15 Jul 2022 16:47:39 +0200 Subject: [PATCH] add placeholder details in detail of device --- ereuse_devicehub/inventory/views.py | 1 + ereuse_devicehub/templates/inventory/device_detail.html | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index 52a1a04a..d45b93ec 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -143,6 +143,7 @@ class DeviceDetailView(GenericMixin): self.context.update( { 'device': device, + 'placeholder': device.binding or device.placeholder, 'page_title': 'Device {}'.format(device.devicehub_id), } ) diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index 2da9cd31..bf3e8185 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -23,9 +23,15 @@