I have a query
q = Product.objects \
.annotate(t=Subquery(Purchase.objects.filter(user=user)))
and when I do print(q.query) I get the following exception:
{FieldError} Cannot resolve expression type, unknown output_field
What to do and why they can't resolve the expression type?