0👍
Something like this should work:
Given a Department
object department_obj
:
images = Image.objects.filter(tags__in=department_obj.tags.all())
- [Answer]-Mongodb schema optimization
- [Answer]-Django form for 2 related model
- [Answer]-How to use Django JSON and GeoJSON Serializer?
Source:stackexchange.com