Skip to content

Commit 48ed664

Browse files
authored
Merge pull request #530 from bruecksen/django-hijack
Add django-hijack
2 parents f8026cf + 7cd9f5f commit 48ed664

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

config/settings/base.py

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
"wagtailmenus",
119119
"djangoql",
120120
"wagtail_non_admin_draftail",
121+
"hijack",
122+
"hijack.contrib.admin",
121123
]
122124

123125

@@ -191,6 +193,7 @@
191193
"wagtail.contrib.redirects.middleware.RedirectMiddleware",
192194
"bakeup.core.middleware.PersistentFiltersMiddleware",
193195
"allauth.account.middleware.AccountMiddleware",
196+
"hijack.middleware.HijackUserMiddleware",
194197
]
195198

196199
# STATIC

config/urls.py

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"wagtail_non_admin_draftail.urls", namespace="wagtail_non_admin_draftail"
4242
),
4343
),
44+
path("hijack/", include("hijack.urls")),
4445
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
4546

4647

requirements/base.txt

+1
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ django-autocomplete-light==3.11.0
3333
mjml-python==1.3.3
3434
mrml==0.1.14
3535
djangoql==0.18.1
36+
django-hijack==3.7.0

0 commit comments

Comments
 (0)