'Resets the draft version of the page to match the live one'

@require_POST
@transaction.atomic
def revert_to_live(self, request, page_id, language):

    page = get_object_or_404(self.model, pk=page_id, publisher_is_draft=True, title_set__language=language)
    if (not self.has_revert_to_live_permission(request, language, obj=page)):
        return HttpResponseForbidden(force_text(_('You    do    not    have    permission    to    revert    this    page.')))
    translation = page.get_title_obj(language=language)
    operation_token = self._send_pre_page_operation(request, operation=operations.REVERT_PAGE_TRANSLATION_TO_LIVE, obj=page, translation=translation)
    page.revert_to_live(language)
    translation.refresh_from_db()
    self._send_post_page_operation(request, operation=operations.REVERT_PAGE_TRANSLATION_TO_LIVE, token=operation_token, obj=page, translation=translation)
    messages.info(request, (_('"%s"    was    reverted    to    the    live    version.') % page))
    path = page.get_absolute_url(language=language)
    path = ('%s?%s' % (path, get_cms_setting('CMS_TOOLBAR_URL__EDIT_OFF')))
    return HttpResponseRedirect(path)
