docs: def get_template(self):
          """
          Get the :attr:`template <Page.template>` of this page if
          defined or the closer parent's one if defined
          or :attr:`pages.settings.PAGE_DEFAULT_TEMPLATE` otherwise.
          """
          if self.template:
              return self.template
  
          template = None
          for p in self.get_ancestors(ascending=True):
              if p.template:
                  template = p.template
                  break
  
          if not template:
              template = settings.PAGE_DEFAULT_TEMPLATE
  
          return template