docs: def update_redirect_to_from_json(page, redirect_to_complete_slugs):
      """
      The second pass of create_and_update_from_json_data
      used to update the redirect_to field.
  
      Returns a messages list to be appended to the messages from the
      first pass.
      """
      messages = []
      s = ''
      for lang, s in list(redirect_to_complete_slugs.items()):
          r = Page.objects.from_path(s, lang, exclude_drafts=False)
          if r:
              page.redirect_to = r
              page.save()
              break
      else:
          messages.append(_("Could not find page for redirect-to field"
              " '%s'") % (s,))
      return messages