[Answered ]-Count number of times object appears in Foreign Key with filter

1👍

Please RTFM.

You are looking for this bit of documentation:

... .annotate(...) \
    .filter(date_created__gt=start) \
    .filter(date_created__lt=end) \
    .order_by ...
👤J_H

Leave a comment