def _build_query(self): timetable_entry_strategy = joinedload('timetable_entry') timetable_entry_strategy.lazyload('*') return (Contribution.query.with_parent(self.event).order_by( Contribution.friendly_id).options( timetable_entry_strategy, joinedload('session'), subqueryload('person_links'), db.undefer('subcontribution_count'), db.undefer('attachment_count'), db.undefer('is_scheduled')))
def build_query(self): timetable_entry_strategy = joinedload('timetable_entry') timetable_entry_strategy.lazyload('*') return (Contribution.query.with_parent(self.report_event) .order_by(Contribution.friendly_id) .options(timetable_entry_strategy, joinedload('session'), subqueryload('person_links'), db.undefer('subcontribution_count'), db.undefer('attachment_count'), db.undefer('is_scheduled')))