You can still do this in the db, I think. `MidcourseReverificationWindow.objects.filter(course_id=self.course_id, end_date__gte=self.start_date, start_date__lte=self.end_date)`