def METHOD_NAME(self, form):
    # TODO: This override is only required for Wagtail<2.1
    messages.validation_error(
        self.request, self.get_error_message(), form
    )
    return self.render_to_response(self.get_context_data())