return QuerySetMapper(self.attribute_set, passthrough=self.parent.attributes)
return super(TreeEntity, self).attributes
- @property
- def relationships(self):
- if self.parent:
- return QuerySetMapper(self.relationship_set, passthrough=self.parent.relationships)
- return super(TreeEntity, self).relationships
-
class Meta:
abstract = True
\ No newline at end of file
raise
try:
- Http404View = node.relationships['Http404']
+ Http404View = node.attributes['Http404']
except KeyError:
Http404View = None
raise
try:
- Http500View = node.relationships['Http500']
+ Http500View = node.attributes['Http500']
if not Http500View:
raise e