[Django]-Django query for many to many relationship

11👍

test_population = TestPopulation.objects.get(user=user)
test_population.questionnaire.all()

4👍

questionnaire.objects.filter(test_population__user=user).count()
👤Marat

Leave a comment