We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46c1fcf commit 27fbac2Copy full SHA for 27fbac2
1 file changed
cbv/views.py
@@ -70,13 +70,14 @@ def get_context_data(self, **kwargs):
70
klass.module.project_version, klass.module, klass
71
)
72
direct_ancestors = list(klass.get_ancestors())
73
+ all_ancestors = klass.get_all_ancestors()
74
ancestors = [
75
self.Ancestor(
76
name=ancestor.name,
77
url=ancestor.get_absolute_url(),
78
is_direct=ancestor in direct_ancestors,
79
- for ancestor in klass.get_all_ancestors()
80
+ for ancestor in all_ancestors
81
]
82
children = [
83
self.Child(
0 commit comments