From a9137dbacf05e633034bb1e7757dac3f47aefe9d Mon Sep 17 00:00:00 2001 From: sergio_gimenez Date: Tue, 22 Oct 2024 08:15:17 +0200 Subject: [PATCH] Remove unneccessary stuff from view --- device/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/device/views.py b/device/views.py index 0c80d4d..b99e66b 100644 --- a/device/views.py +++ b/device/views.py @@ -110,11 +110,8 @@ class DetailsView(DashboardView, TemplateView): return context -class DeviceWebView(DashboardView, TemplateView): +class DeviceWebView(TemplateView): template_name = "device_web.html" - title = _("Device Website") - breadcrumb = "Device / Public" - model = Annotation def get(self, request, *args, **kwargs): self.pk = kwargs['pk'] @@ -124,11 +121,9 @@ class DeviceWebView(DashboardView, TemplateView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) self.object.initial() - lot_tags = LotTag.objects.filter(owner=self.request.user.institution) context.update({ 'object': self.object, 'snapshot': self.object.get_last_evidence(), - 'lot_tags': lot_tags, }) return context