[Answer]-Statistic with django

1👍

You’re there. You just need to actually use the right filter syntax. If you’re trying filter on the gender field on profile, then you do that with profile__gender, so:

males_answering = question.answers.filter(profile__gender="male").count()

Leave a comment