[Solved]-How to check if a Django arrayfield has data

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)

Leave a comment