Commits

Steve Losh committed 9d76893

Add parent.

  • Participants
  • Parent commits 32eda85

Comments (0)

Files changed (2)

File docs/templating.rst

 
 A normal Django ``get_absolute_url`` method that will return the page's URL.
 
+``page.parent``
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The page's parent.
+
 ``page.fields``
 ~~~~~~~~~~~~~~~
 

File stoat/models.py

         return self.fields()
 
 
+    def parent(self):
+        return self.get_parent()
+
     def get_absolute_url(self):
         return self.url