20👍
✅
You can use the len
filter on an ArrayField
and filter where the length of the array is greater than 0
Article.objects.filter(id_list__len__gt=0)
Source:stackexchange.com