From 3ba17aab85b286ec115895fcdf5edc981f83ea50 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 15 Jan 2025 13:26:56 +0100 Subject: [PATCH] split long line --- device/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/device/views.py b/device/views.py index caafd78..b0aec06 100644 --- a/device/views.py +++ b/device/views.py @@ -117,12 +117,15 @@ class DetailsView(DashboardView, TemplateView): ) last_evidence= self.object.get_last_evidence(), uuid=self.object.last_uuid() + state_definitions = StateDefinition.objects.filter( + institution=self.request.user.institution + ).order_by('order') context.update({ 'object': self.object, 'snapshot': last_evidence, 'lot_tags': lot_tags, 'dpps': dpps, - "state_definitions": StateDefinition.objects.filter(institution=self.request.user.institution).order_by('order'), + "state_definitions": state_definitions, "device_states": State.objects.filter(snapshot_uuid=uuid).order_by('-date'), "device_logs": DeviceLog.objects.filter(snapshot_uuid=uuid).order_by('-date'), "device_notes": Note.objects.filter(snapshot_uuid=uuid).order_by('-date'),