From 70555ee5a34d1c0bd9c9792d06ef1b5fd73881ae Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Tue, 2 Aug 2022 09:38:03 +0200 Subject: [PATCH] #185 Parcel loading on public reports * fixes bug where unauthorized clients would not load a geometries parcel view properly * minor general templates enhancements --- konova/views.py | 2 -- templates/base.html | 2 +- user/templates/user/team/index.html | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/konova/views.py b/konova/views.py index 4fadf6a0..48572a85 100644 --- a/konova/views.py +++ b/konova/views.py @@ -102,7 +102,6 @@ def home_view(request: HttpRequest): return render(request, template, context) -@login_required def get_geom_parcels(request: HttpRequest, id: str): """ Getter for HTMX @@ -157,7 +156,6 @@ def get_geom_parcels(request: HttpRequest, id: str): return HttpResponse(None, status=404) -@login_required def get_geom_parcels_content(request: HttpRequest, id: str, page: int): """ Getter for infinite scroll of HTMX diff --git a/templates/base.html b/templates/base.html index 30be48ed..ec79ca62 100644 --- a/templates/base.html +++ b/templates/base.html @@ -31,7 +31,7 @@ {% endfor %} -
+
{% comment %} The modal wrapper, which can be used on every view can stay on the base.html template {% endcomment %} diff --git a/user/templates/user/team/index.html b/user/templates/user/team/index.html index 63560516..68b135f7 100644 --- a/user/templates/user/team/index.html +++ b/user/templates/user/team/index.html @@ -14,8 +14,8 @@ {% block body %}
-

{% trans 'Teams' %}

+

{% trans 'Teams' %}