[Django]-How to filter a django queryset using an array on a field like SQL's "IN"?

74👍

.filter(id__in=[1, 3, 4, 5, 6....])

Read more about it at Django docs.

Leave a comment