show dhi of placeholder in shapshot_log list
This commit is contained in:
parent
1996e8fa7a
commit
9800b48aa3
|
@ -42,6 +42,8 @@ class SnapshotsLog(Thing):
|
|||
|
||||
def get_device(self):
|
||||
if self.snapshot:
|
||||
if self.snapshot.device.binding:
|
||||
return self.snapshot.device.binding.device.devicehub_id
|
||||
return self.snapshot.device.devicehub_id
|
||||
|
||||
return ''
|
||||
|
|
Reference in New Issue