Skip to content
Permalink
Browse files

Fix to remove draft cms pages from the sitemap

  • Loading branch information...
abrown1982 committed Apr 3, 2013
1 parent 01ea46b commit 7df47d754c3fe887c6d0a9af39cb01add4334b6e
Showing with 1 addition and 0 deletions.
  1. +1 −0 cmsplugin_htmlsitemap/cms_plugins.py
@@ -20,6 +20,7 @@ def render(self, context, instance, placeholder):
site = Site.objects.get_current()
pages = Page.objects.published(site=site).order_by('tree_id', 'lft')
pages = pages.filter(level__gte=instance.level_min, level__lte=instance.level_max)
pages = pages.filter(publisher_is_draft=0)
if not instance.in_navigation is None:
pages = pages.filter(in_navigation=instance.in_navigation)
if instance.match_language:

0 comments on commit 7df47d7

Please sign in to comment.
You can’t perform that action at this time.