From 5d1513b30005f69a52ebc36ce82709e275b4d6c3 Mon Sep 17 00:00:00 2001 From: sergio_gimenez Date: Tue, 22 Oct 2024 07:35:47 +0200 Subject: [PATCH] Update breadcrumb --- device/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/device/views.py b/device/views.py index 439fcd9..0c80d4d 100644 --- a/device/views.py +++ b/device/views.py @@ -95,7 +95,7 @@ class DetailsView(DashboardView, TemplateView): raise Http404 if self.object.owner != self.request.user.institution: raise Http403 - + return super().get(request, *args, **kwargs) def get_context_data(self, **kwargs): @@ -113,7 +113,7 @@ class DetailsView(DashboardView, TemplateView): class DeviceWebView(DashboardView, TemplateView): template_name = "device_web.html" title = _("Device Website") - breadcrumb = "Device / Web" + breadcrumb = "Device / Public" model = Annotation def get(self, request, *args, **kwargs): @@ -157,7 +157,7 @@ class AddAnnotationView(DashboardView, CreateView): value=pk, type=Annotation.Type.SYSTEM ).first() - + if not self.annotation: raise Http404