File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -387,19 +387,19 @@ def render_obj_placeholder(
387
387
nodelist = None ,
388
388
editable : bool = True ,
389
389
):
390
+ # Get current object from toolbar
391
+ current_obj = self .toolbar .get_object ()
390
392
# Check if page, if so delegate to render_page_placeholder
391
- if self .current_page :
393
+ if self .current_page and ( isinstance ( current_obj , ( PageContent , type ( None )))) :
392
394
return self .render_page_placeholder (
393
395
slot ,
394
396
context ,
395
397
inherit ,
396
398
nodelist = nodelist ,
397
399
editable = editable ,
398
400
)
399
-
400
401
# Not page, therefore we will use toolbar object as
401
402
# the current object and render the placeholder
402
- current_obj = self .toolbar .get_object ()
403
403
if current_obj is None :
404
404
raise PlaceholderNotFound (f"No object found for placeholder '{ slot } '" )
405
405
placeholder = rescan_placeholders_for_obj (current_obj ).get (slot )
You can’t perform that action at this time.
0 commit comments