Commits

Steve Losh committed 9d76893

Add parent.

Comments (0)

Files changed (2)

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``
 ~~~~~~~~~~~~~~~
 
         return self.fields()
 
 
+    def parent(self):
+        return self.get_parent()
+
     def get_absolute_url(self):
         return self.url