示例#1
0
文件: lists.py 项目: javfg/indico
 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')))
示例#2
0
 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')))