[Django]-Filter Queryset on empty ImageField

31👍

Try this:

Book.objects.filter(picture__exact='')
👤arulmr

10👍

Just run the exclude method:

Books.objects.exclude(picture='')
👤0x4ndy

Leave a comment