docs: def language_content_up_to_date(page, language):
      """Tell if all the page content has been updated since the last
      change of the official version (settings.LANGUAGE_CODE)
  
      This is approximated by comparing the last modified date of any
      content in the page, not comparing each content block to its
      corresponding official language version.  That allows users to
      easily make "do nothing" changes to any content block when no
      change is required for a language.
      """
      lang_code = getattr(settings, 'LANGUAGE_CODE', None)
      if lang_code == language:
          # official version is always "up to date"
          return True
      # get the last modified date for the official version
      last_modified = Content.objects.filter(
          language=lang_code,
          page=page).order_by('-creation_date')
      if not last_modified:
          # no official version
          return True
      lang_modified = Content.objects.filter(
          language=language,
          page=page).order_by('-creation_date')[0].creation_date
      return lang_modified > last_modified[0].creation_date