Skip to content
Discussion options

You must be logged in to vote

This would suggest the filter won't be applied to the queryset of the m2m model.

You may want to try something like this as a workaround:

ct = ContentType.objects.get_for_model(TaskTopic)
Event.objects.filter(tasks__polymorphic_ctype=ct)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bckohan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #157 on December 12, 2025 00:14.