File tree 1 file changed +3
-3
lines changed
fragdenstaat_de/fds_cms/templatetags
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,23 +82,23 @@ def get_soft_root(page):
82
82
@register .simple_tag (takes_context = True )
83
83
def get_breadcrumb_ancestor (context , navigation_node ):
84
84
print (context )
85
- if navigation_node == None :
85
+ if navigation_node is None :
86
86
return
87
87
88
88
try :
89
89
request = context ["request" ]
90
90
except KeyError :
91
91
return
92
92
93
- page = Page .objects .get (pk = navigation_node .id )
94
93
95
94
try :
95
+ page = Page .objects .get (pk = navigation_node .id )
96
96
ancestor = page .fdspageextension .breadcrumb_ancestor
97
97
only_upwards = page .fdspageextension .ancestor_only_upwards
98
98
except AttributeError :
99
99
return
100
100
101
- if ancestor == None :
101
+ if ancestor is None :
102
102
return
103
103
104
104
if only_upwards and request .current_page != page :
You can’t perform that action at this time.
0 commit comments