You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thank you for django-hijack, it served us well for years now.
We've been updating our django app from version 1.9.5 to 4.2.11 (I know, insane...). We got most things working, but I cannot get django-hijack to work anymore. We've updated it to the latest 3.4.5 version and we're running on Python 3.8.19. I'm loading the Admin site using django.contrib.admin.apps.SimpleAdminConfig
at the beginning, we had a custom admin view with a list of fields like this:
But django wouldn't start, complaining that hijack_field wasn't an available field (the HijackUserAdminMixin mixin from hijack.contrib.admin was used).
I've now tried completely removing any traces of the previous installation - all settings, mixins, imports - are gone. I have hijack and hijack.contrib.admin in my INSTALLED_APPS, and hijack.middleware.HijackUserMiddleware in the MIDDLEWARE list. I've disabled the custom admin view for users, so the default one is being used instead. and yet, the hijack button doesn't appear.
I'm a little lost regarding what to try further, as the docs don't mention anything special except adding the hijack.contrib.admin app.
What could be the reason that the button doesn't appear?
The text was updated successfully, but these errors were encountered:
Hey, thank you for django-hijack, it served us well for years now.
We've been updating our django app from version 1.9.5 to 4.2.11 (I know, insane...). We got most things working, but I cannot get django-hijack to work anymore. We've updated it to the latest 3.4.5 version and we're running on Python 3.8.19. I'm loading the Admin site using
django.contrib.admin.apps.SimpleAdminConfig
at the beginning, we had a custom admin view with a list of fields like this:
But django wouldn't start, complaining that
hijack_field
wasn't an available field (theHijackUserAdminMixin
mixin fromhijack.contrib.admin
was used).I've now tried completely removing any traces of the previous installation - all settings, mixins, imports - are gone. I have
hijack
andhijack.contrib.admin
in myINSTALLED_APPS
, andhijack.middleware.HijackUserMiddleware
in theMIDDLEWARE
list. I've disabled the custom admin view for users, so the default one is being used instead. and yet, the hijack button doesn't appear.I'm a little lost regarding what to try further, as the docs don't mention anything special except adding the
hijack.contrib.admin
app.What could be the reason that the button doesn't appear?
The text was updated successfully, but these errors were encountered: