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

@@ -158,6 +158,8 @@ THIRD_PARTY_APPS = [
'rest_framework',
'post_office',
'bootstrap_datepicker_plus',
'hijack',
'compat',
]
FIRST_PARTY_APPS = [
@@ -265,7 +267,7 @@ AUTH_USER_MODEL = 'people.User'
LOGIN_URL = reverse_lazy('login')
LOGIN_REDIRECT_URL = reverse_lazy('index')
LOGIN_REDIRECT_URL = reverse_lazy('people:person.profile')
# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/
@@ -353,6 +355,13 @@ CONSTANCE_CONFIG_FIELDSETS = {
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
# Django Hijack settings
# See https://django-hijack.readthedocs.io/en/stable/
HIJACK_USE_BOOTSTRAP = True
# Bootstrap settings
# See https://django-bootstrap4.readthedocs.io/en/latest/settings.html