def _process(self): form = ReferenceTypeForm() if form.validate_on_submit(): reference_type = create_reference_type(form.data) flash(_("External ID type '{}' created successfully").format(reference_type.name), 'success') return jsonify_data(html=_render_reference_type_list()) return jsonify_form(form)
def _process(self): form = ReferenceTypeForm() if form.validate_on_submit(): reference_type = create_reference_type(form.data) flash(_("External ID type '{}' created successfully").format(reference_type.name), 'success') return jsonify_data(html=_render_reference_type_list()) return jsonify_form(form)