-
-
Notifications
You must be signed in to change notification settings - Fork 32
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 to filter an array field #556
Comments
Also interested |
Fyi, I ended up managing the filtering myself
see this PR changes : https://github.com/openfoodfacts/open-prices/pull/234/files |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Also interested in that, it would be a shame if it gets closed unnoticed. |
@raphodn |
Hi !
I'm struggling to understand if/how I can filter an array field.
I'm using SQLAlchemy + PostgreSQL, and I have a
Product.categories_tags
field that looks like this :["en:beverages", "en:orange-juices]
.I would like to be able to filter this field in a simple manner, for example :
categories_tags__contains=en:beverages
Is this something feasible ? a possible linked PR : #395
Thanks in advance for your help, I'd be willing to do a PR if needed :)
The text was updated successfully, but these errors were encountered: