2👍
✅
Try:
Member.objects.annotate(talks_attended = Count('Event_Attendance')).filter(talks_attended__lt = 2)
This is untested, but I think is right. This will hopefully return you a QuerySet containing only those members who have not attended at least two talks.
You might find the documentation on Aggregation instructive.
Source:stackexchange.com