def METHOD_NAME(self, from_date, to_date):
    """Select all who are currently a Thalia member and have a birthday within the specified range.
    :param from_date: the start of the range (inclusive)
    :param to_date: the end of the range (inclusive)
    :paramtype from_date: datetime
    :paramtype to_date: datetime
    :return: the filtered queryset
    :rtype: Queryset
    """
    queryset = self.get_queryset().filter(profile__birthday__lte=to_date)
    if (to_date - from_date).days >= 366:
        # 366 is important to also account for leap years
        # Everyone that's born before to_date has a birthday
        return queryset
    delta = to_date - from_date
    dates = [from_date + timedelta(days=i) for i in range(delta.days + 1)]
    monthdays = [
        {"profile__birthday__month": d.month, "profile__birthday__day": d.day}
        for d in dates
    ]
    # Don't get me started (basically, we are making a giant OR query with
    # all days and months that are in the range)
    query = reduce(operator.or_, [Q(**d) for d in monthdays])
    return queryset.filter(query)