Django: How to use an annotation from a parent queryset?

Solution 1:

You can work with a Prefetch object [Django-doc]:

from django.db.models import Prefetch

Factory.objects.prefetch_related(
    Prefetch('advised_items', queryset=Item.objects.add_is_favorite_for(some_user))
)