8000 fix: Page Content Extension toolbar by fsbraun · Pull Request #7708 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

fix: Page Content Extension toolbar #7708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 30, 2023
Merged
Prev Previous commit
Next Next commit
Doc-string update
  • Loading branch information
fsbraun committed Nov 29, 2023
commit ed1e036d5da19d6ef44160646938d5a31ddeea13
8 changes: 6 additions & 2 deletions cms/extensions/toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@


class ExtensionToolbar(CMSToolbar):
""""Offers simplified API for providing the user access to the admin of page extensions and
page content extensions through the toolbar."""
model = None
page = None
page_content = None
Expand Down Expand Up @@ -68,6 +70,10 @@ def get_page_extension_admin(self):

def get_title_extension_admin(self, language=None):
"""
Deprecated.

Reflects now obsolete behavior in django CMS 3.x:

Get the admin urls for the page content extensions menu items, depending on whether a
:class:`~cms.extensions.models.PageContentExtension` instance exists for each
:class:`~cms.models.contentmodels.PageContent` in the current page.
Expand Down Expand Up @@ -96,8 +102,6 @@ def get_title_extension_admin(self, language=None):
urls.append(admin_url)
return urls

return self.get_page_content_extension_admin(language)

def get_page_content_extension_admin(self, page_content_obj=None):
"""
Get the admin url for the page content extensions menu item, depending on whether a
Expand Down
0