Skip to content
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

Autocomplete search button throws 403 on User proxy model #1045

Closed
kenricci opened this issue Jan 19, 2024 · 4 comments
Closed

Autocomplete search button throws 403 on User proxy model #1045

kenricci opened this issue Jan 19, 2024 · 4 comments

Comments

@kenricci
Copy link

I have a proxy model to the auth.User model using grappelli 3.0.8. I set up an autocomplete to the proxy model which works fine when typing a portion of the user name in the text box. However, when a user clicks on the magnifying glass lookup button, the system throws a 403 error.

If the user has superuser rights, it works. I tried added auth.user view permissions, but it won't work for a standard user.

autocomplete_typing
autocomplete_button_403

@sehmaschine
Copy link
Owner

does it work without the autocomplete (e.g. with a raw id field)?

@kenricci
Copy link
Author

kenricci commented Jan 22, 2024 via email

@sehmaschine
Copy link
Owner

I'm not sure this is related to grappelli. The magnifying glass opens a new window based on django permissions – did you register that (proxy) model with the admin?

@kenricci
Copy link
Author

kenricci commented Jan 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants