Add both impact and dpp in the view context

This commit is contained in:
Sergio Giménez Antón 2024-12-16 09:01:05 +01:00
parent 447946a576
commit 3fb0961815

View file

@ -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")