예제 #1
0
 def _process(self):
     regform_stats = [OverviewStats(self.regform)]
     regform_stats += [
         AccommodationStats(x) for x in self.regform.active_fields
         if x.input_type == 'accommodation'
     ]
     return WPManageRegistrationStats.render_template(
         'management/regform_stats.html',
         self.event,
         regform=self.regform,
         regform_stats=regform_stats)
예제 #2
0
 def _process(self):
     regform_stats = [OverviewStats(self.regform)]
     regform_stats += [AccommodationStats(x) for x in self.regform.active_fields if x.input_type == 'accommodation']
     return WPManageRegistrationStats.render_template('management/regform_stats.html', self.event,
                                                      regform=self.regform, regform_stats=regform_stats)