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

How can I shorten the request #99

Open
PrefixEt opened this issue Jul 7, 2020 · 0 comments
Open

How can I shorten the request #99

PrefixEt opened this issue Jul 7, 2020 · 0 comments

Comments

@PrefixEt
Copy link

PrefixEt commented Jul 7, 2020

Hello django-url-filter team.
My project has a rather confusing data structure and the requests are very long.
Example. I have posters and campaign models. If I want filter posters by campaign name, I need to write some like this:

api/posters/?reference__design__campaign__name__in=company_name

But I would like to use the following query:

api/posters/?campaign__in=company_name

Can I use modelfilterset to do something like an association ?reference__design__campaign__name__in and ?campaign__in

Thanks.

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