def _process(self): form = PapersScheduleForm(obj=FormDefaults(**paper_reviewing_settings.get_all(self.event)), event=self.event) if form.validate_on_submit(): rescheduled = self.event.cfp.start_dt is not None schedule_cfp(self.event, **form.data) if rescheduled: flash(_("Call for papers has been rescheduled"), 'success') else: flash(_("Call for papers has been scheduled"), 'success') return jsonify_data(html=_render_paper_dashboard(self.event)) return jsonify_form(form)
def _process(self): form = PapersScheduleForm(obj=FormDefaults(**paper_reviewing_settings.get_all(self.event)), event=self.event) if form.validate_on_submit(): rescheduled = self.event.cfp.start_dt is not None schedule_cfp(self.event, **form.data) if rescheduled: flash(_("Call for papers has been rescheduled"), 'success') else: flash(_("Call for papers has been scheduled"), 'success') return jsonify_data(html=_render_paper_dashboard(self.event)) return jsonify_form(form)