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

BUG: Filtering by task__name not allowed #150

Open
eliasfank opened this issue Aug 23, 2024 · 0 comments
Open

BUG: Filtering by task__name not allowed #150

eliasfank opened this issue Aug 23, 2024 · 0 comments

Comments

@eliasfank
Copy link

When I go to the Task Signals admin list and use the list filter by task__name, django raises Filtering by task__name not allowed.

Looking for the docs I found this
By default, lookup_allowed() allows access to a model’s local fields, field paths used in list_filter (but not paths from get_list_filter()),

So, we also need to override lookup_allowed with some similar to get it work as expected
image

What do you think about a fix?

I can open the PR if you prefer

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

1 participant