There is ManyToMany field in Entry
model called tags.
How do I filter Entries, which contain exact set of selected tags?
E.g. get all entries, that have tags with ids 1,2,3 and not 1,2,3,4 or 1,2
Something like this:
selected_tags = Tag.objects.filter(id__in=[id1,id2,id3])
entries = Entry.objects.filter(tags=selected_tags)
Thanks!