def _process(self): form = TrackForm(event=self.event, obj=self.track) if form.validate_on_submit(): update_track(self.track, form.data) flash(_('Track "{}" has been modified.').format(self.track.title), 'success') return jsonify_data(html=_render_track_list(self.event)) return jsonify_form(form)
def _process(self): form = TrackForm(event=self.event, obj=self.track) if form.validate_on_submit(): update_track(self.track, form.data) flash(_('Track "{}" has been modified.').format(self.track.title), 'success') return jsonify_data(html=_render_track_list(self.event)) return jsonify_form(form)