def METHOD_NAME(self, form):
    messages.success(self.request,
                     'Submitted data: {!r}'.format(form.cleaned_data))
    return self.render_to_response(self.get_context_data(form=form))