3👍
✅
Django’s Postgres integration allows you to query in embedded arrays using the __contains
operator. So you can do:
Route.objects.filter(stops_forwards__contains=[285])
Source:stackexchange.com