diff --git a/impersonate/urls.py b/impersonate/urls.py index ca1f4cee9615cca701801be05077c01b6f2c79da..dce4619b931404960fe0ab464e785feb9c5f039b 100644 --- a/impersonate/urls.py +++ b/impersonate/urls.py @@ -2,6 +2,7 @@ from __future__ import annotations from django.urls import path from . import views +app_name = "impersonate" urlpatterns = [ # Impersonate a user path('impersonate/', views.Impersonate.as_view(), name="impersonate"), diff --git a/nmlayout/templates/nm2-base.html b/nmlayout/templates/nm2-base.html index a411d3a629e70e56deba8640f95fc19b01300992..18358e064f391990c788ff8a2356a1f2195e28a5 100644 --- a/nmlayout/templates/nm2-base.html +++ b/nmlayout/templates/nm2-base.html @@ -38,7 +38,7 @@ window.nm2.url_api_people = "{% url 'api_people' %}"; {% if link.icon %} {% endif %}{{link.label}} {% endfor %} {% if visitor != person %} -
{% csrf_token %} + {% csrf_token %} @@ -79,7 +79,7 @@ window.nm2.url_api_people = "{% url 'api_people' %}";