def get_queryset(self, request): return super().get_queryset(request).annotate(applications_count=Count('instances'))