feature/90-implement-public-website-for-device #17

Merged
cayop merged 32 commits from feature/90-implement-public-website-for-device into main 2024-10-30 15:02:18 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 2636e80ece - Show all commits

View File

@ -95,7 +95,7 @@ class DetailsView(DashboardView, TemplateView):
raise Http404 raise Http404
if self.object.owner != self.request.user.institution: if self.object.owner != self.request.user.institution:
raise Http403 raise Http403
return super().get(request, *args, **kwargs) return super().get(request, *args, **kwargs)
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
@ -113,7 +113,7 @@ class DetailsView(DashboardView, TemplateView):
class DeviceWebView(DashboardView, TemplateView): class DeviceWebView(DashboardView, TemplateView):
template_name = "device_web.html" template_name = "device_web.html"
title = _("Device Website") title = _("Device Website")
breadcrumb = "Device / Web" breadcrumb = "Device / Public"
model = Annotation model = Annotation
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
@ -157,7 +157,7 @@ class AddAnnotationView(DashboardView, CreateView):
value=pk, value=pk,
type=Annotation.Type.SYSTEM type=Annotation.Type.SYSTEM
).first() ).first()
if not self.annotation: if not self.annotation:
raise Http404 raise Http404