def METHOD_NAME(self):
    form = RegistrationPrivacyForm(
        event=self.event,
        regform=self.regform,
        retention_period=self.regform.retention_period,
        require_privacy_policy_agreement=self.regform.require_privacy_policy_agreement,
        visibility=[
            self.regform.publish_registrations_participants.name,
            self.regform.publish_registrations_public.name,
            (self.regform.publish_registrations_duration.days // 7
             if self.regform.publish_registrations_duration is not None else None)
        ]
    )
    if form.validate_on_submit():
        participant_visibility, public_visibility, visibility_duration = form.visibility.data
        visibility_duration = timedelta(weeks=visibility_duration) if visibility_duration is not None else None
        changes = self._get_changes(participant_visibility, public_visibility,
                                    visibility_duration, form.retention_period.data,
                                    form.require_privacy_policy_agreement.data)
        self.regform.retention_period = form.retention_period.data
        self.regform.publish_registrations_participants = PublishRegistrationsMode[participant_visibility]
        self.regform.publish_registrations_public = PublishRegistrationsMode[public_visibility]
        self.regform.publish_registrations_duration = visibility_duration
        self.regform.require_privacy_policy_agreement = form.require_privacy_policy_agreement.data
        db.session.flush()
        self.event.log(EventLogRealm.management, LogKind.change, 'Privacy',
                       f'Privacy settings for "{self.regform.title}" modified', session.user,
                       data={'Changes': changes})
        flash(_('Settings saved'), 'success')
        return redirect(url_for('.manage_registration_privacy_settings', self.regform))
    return WPManageRegistration.render_template('management/regform_privacy.html', self.event,
                                                regform=self.regform, form=form)