feat: use django-hijack to switch user accounts

Resolves #74
This commit is contained in:
James Graham
2021-02-08 14:40:37 +00:00
parent f4bd9a0cef
commit 9164ea8a05
5 changed files with 29 additions and 1 deletions

View File

@@ -27,6 +27,10 @@
{% load staticfiles %}
<link rel="stylesheet" href="{% static 'css/global.css' %}">
<link rel="stylesheet"
type="text/css"
href="{% static 'hijack/hijack-styles.css' %}" />
{% if 'javascript_in_head'|bootstrap_setting %}
{% if 'include_jquery'|bootstrap_setting %}
{# jQuery JavaScript if it is in head #}
@@ -144,6 +148,9 @@
</div>
{% endif %}
{% load hijack_tags %}
{% hijack_notification %}
{% if request.user.is_authenticated and not request.user.has_person %}
<div class="alert alert-info rounded-0" role="alert">
<p class="text-center mb-0">