[Answer]-Matching manytomany fields in django

1👍

Try this:

Image.objects.filter(tags__department=d) #where d is your deparment.
👤Todor

0👍

Something like this should work:

Given a Department object department_obj:

images = Image.objects.filter(tags__in=department_obj.tags.all())

Leave a comment