Skip to content

Commit

Permalink
Fix issue nephila#67: Broken django-cms page type display
Browse files Browse the repository at this point in the history
Excludes django-cms page types from sitemap
  • Loading branch information
4wrk authored Dec 4, 2021
1 parent 9184de4 commit 7a85448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions djangocms_page_sitemap/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def populate(self):
if not self.page:
# Nothing to do
return
if self.page.is_page_type:
# If a page type nothing to do
return

# check global permissions if CMS_PERMISSIONS is active
if get_cms_setting("PERMISSION"):
Expand Down

0 comments on commit 7a85448

Please sign in to comment.