cms/apps/pages/models.py
def children(self):
        '''The child pages for this page.'''
        children = []
        page = self.canonical_version
        if page.right - page.left > 1:  # Optimization - don't fetch children
            #  we know aren't there!
            for child in page.child_set.filter(is_canonical_page=True):
                child.parent = page
                children.append(child)
        return children
The child pages for this page.
The child pages for this page.
The child pages for this page .
def children(self):
        children = []
        page = self.canonical_version
        if page.right - page.left > 1:  
            for child in page.child_set.filter(is_canonical_page=True):
                child.parent = page
                children.append(child)
        return children
def children ( self ) : children = [ ] page = self . canonical_version if page . right - page . left > 1 : for child in page . child_set . filter ( is_canonical_page = True ) : child . parent = page children . append ( child ) return children
The child pages for this page.
The child pages for this page .
'''The child pages for this page.''' # Optimization - don't fetch children #  we know aren't there!
self