Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/issue-6840-slug-uniqueness-on-move
Browse files Browse the repository at this point in the history
  • Loading branch information
goutnet committed May 19, 2021
2 parents fd90f12 + 4538388 commit cfe0b38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cms/plugin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,18 @@ def render_close_frame(self, request, obj, extra_context=None):
root = obj

plugins = [root] + list(root.get_descendants().order_by('path'))
# simulate the call to the unauthorized CMSPlugin.page property
cms_page = obj.placeholder.page if obj.placeholder_id else None

child_classes = self.get_child_classes(
slot=obj.placeholder.slot,
page=obj.page,
page=cms_page,
instance=obj,
)

parent_classes = self.get_parent_classes(
slot=obj.placeholder.slot,
page=obj.page,
page=cms_page,
instance=obj,
)

Expand Down

0 comments on commit cfe0b38

Please sign in to comment.