diff --git a/compound/book/browser.py b/compound/book/browser.py index ac3e905..f454941 100644 --- a/compound/book/browser.py +++ b/compound/book/browser.py @@ -78,7 +78,7 @@ class SectionView(Base, ConceptView): def getParentsForResource(self, r): for c in r.context.getConcepts([self.defaultPredicate]): - if c.conceptType not in (self.documentTypeType, self.sectionType): + if c != self.context and c.conceptType != self.documentTypeType: yield c