WIP: cálculo de impacto ambiental #59

Draft
pedro wants to merge 91 commits from feature/f31-device-enviromental-impact into main
Showing only changes of commit 3fb0961815 - Show all commits

View file

@ -115,8 +115,8 @@ class DetailsView(DashboardView, TemplateView):
'object': self.object, 'object': self.object,
'snapshot': self.object.get_last_evidence(), 'snapshot': self.object.get_last_evidence(),
'lot_tags': lot_tags, 'lot_tags': lot_tags,
'impact': get_device_environmental_impact() 'impact': get_device_environmental_impact(),
'dpps': dpps, 'dpps': dpps
}) })
return context return context
@ -180,6 +180,7 @@ class PublicDeviceWebView(TemplateView):
class ExportEnvironmentalImpactPDF(DashboardView, TemplateView): class ExportEnvironmentalImpactPDF(DashboardView, TemplateView):
pass pass
class AddAnnotationView(DashboardView, CreateView): class AddAnnotationView(DashboardView, CreateView):
template_name = "new_annotation.html" template_name = "new_annotation.html"
title = _("New annotation") title = _("New annotation")