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

QUESTION: How to filter a list of dictionaries and *not* from a queryset/Model. #81

Open
DelboyJay opened this issue Apr 1, 2019 · 0 comments

Comments

@DelboyJay
Copy link

I have a case where I have a list of dictionaries containing my data and I want to be able to filter this via a URL query. There are no models involved here because the data is processed and manipulated in memory so I cannot specify anything for the queryset parameter unless this can be set to a list of objects.
I need something like this from your example here

fs = UserFilterSet(data=query, quertset=[
  {'id': 1, 'name':'hello'},
  {'id': 2, 'name':'world'},
])

Is this possible with django-url-filter?

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