Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get the admin hijack buttons to appear #673

Closed
bjesus opened this issue Apr 4, 2024 · 0 comments
Closed

can't get the admin hijack buttons to appear #673

bjesus opened this issue Apr 4, 2024 · 0 comments

Comments

@bjesus
Copy link

bjesus commented Apr 4, 2024

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:

list_display = (
        "username",
        "email",
        "first_name",
        "last_name",
        "hijack_field",
    )

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?

@django-hijack django-hijack locked and limited conversation to collaborators Apr 25, 2024
@codingjoe codingjoe converted this issue into discussion #678 Apr 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant