[Answered ]-Following a relationship backwards, and annotating the results

2👍

You are pretty close already.

from django.db.models import Count

Tourist.objects.annotate(countries_visited=Count('country'))

does what you want, even though you are following the relationship backwards.

Leave a comment