From 3fb0961815b2e3c421217316fafe2c65959f1f0e Mon Sep 17 00:00:00 2001 From: sergiogimenez Date: Mon, 16 Dec 2024 09:01:05 +0100 Subject: [PATCH] Add both impact and dpp in the view context --- device/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/device/views.py b/device/views.py index a5d1f3b..3c66d30 100644 --- a/device/views.py +++ b/device/views.py @@ -115,8 +115,8 @@ class DetailsView(DashboardView, TemplateView): 'object': self.object, 'snapshot': self.object.get_last_evidence(), 'lot_tags': lot_tags, - 'impact': get_device_environmental_impact() - 'dpps': dpps, + 'impact': get_device_environmental_impact(), + 'dpps': dpps }) return context @@ -180,6 +180,7 @@ class PublicDeviceWebView(TemplateView): class ExportEnvironmentalImpactPDF(DashboardView, TemplateView): pass + class AddAnnotationView(DashboardView, CreateView): template_name = "new_annotation.html" title = _("New annotation")