docs: def get_template_name(self):
          """
          Get the template name of this page if defined or if a closer
          parent has a defined template or
          :data:`pages.settings.PAGE_DEFAULT_TEMPLATE` otherwise.
          """
          template = self.get_template()
          page_templates = settings.get_page_templates()
          for t in page_templates:
              if t[0] == template:
                  return t[1]
          return template