You need to replace this with `report.get_next_by_report_date(user=rep)`.