def METHOD_NAME(self):
    org = self.organization
    def on_success(appstruct):
        org.name = appstruct["name"]
        org.logo = appstruct["logo"]
        self._update_appstruct()
        return self._template_context()
    return form.handle_form_submission(
        self.request,
        self.form,
        on_success=on_success,
        on_failure=self._template_context,
    )