-
Notifications
You must be signed in to change notification settings - Fork 657
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
Comments
does it work without the autocomplete (e.g. with a raw id field)? |
No. Still throws a 403. I have turned off the lookup button with css for
now as the autocomplete works
…On Mon, Jan 22, 2024, 2:56 a.m. Patrick Kranzlmueller < ***@***.***> wrote:
does it work without the autocomplete (e.g. with a raw id field)?
—
Reply to this email directly, view it on GitHub
<#1045 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU6TYWFZOOVLBDVYJXSD4DYPZAXFAVCNFSM6AAAAABCCJPA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBTG42TIOBZGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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? |
Doh! I had view permission for the auth.User model, not the proxy. It now
works exactly as it shows.
Sorry for the trouble!
Thank you for your prompt response.
Regards,
Ken
…On Mon, Jan 22, 2024, 7:44 a.m. Patrick Kranzlmueller < ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#1045 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU6TYQXQEND6PVOPDNMZPLYP2CNPAVCNFSM6AAAAABCCJPA5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUGI3TQNRZGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: