def METHOD_NAME(self, form):
    """
    Saves the form instance, sets the current object for the view, and redirects to :meth:`get_success_url`.
    :param form: The valid form instance
    :type form: ~django.forms.ModelForm
    :return: A redirection to the success url
    :rtype: ~django.http.HttpResponseRedirect
    """
    if not form.has_changed():
        # Add "no changes" messages
        messages.info(self.request, _("No changes made"))
    elif self.object:
        messages.success(
            self.request,
            _('{} "{}" was successfully saved').format(
                self.object._meta.verbose_name, self.object
            ),
        )
    else:
        messages.success(
            self.request,
            _('{} "{}" was successfully created').format(
                form.instance._meta.verbose_name, form.instance
            ),
        )
    return super().METHOD_NAME(form)