diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index a97c7392..16b9df5b 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -164,6 +164,10 @@ class Device(Thing): super().__init__(**kw) self.set_hid() + @property + def reverse_actions(self) -> list: + return reversed(self.actions) + @property def actions(self) -> list: """All the actions where the device participated, including: diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index 4f281921..5112efb9 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -109,7 +109,7 @@