Skip to content
Permalink
Browse files

Just a style update.

  • Loading branch information...
Raphael Jasjukaitis
Raphael Jasjukaitis committed Apr 18, 2013
1 parent 3664ac5 commit c118c897961f53df216fd427635e196b26cbd5c7
Showing with 3 additions and 2 deletions.
  1. +3 −2 cmsplugin_htmlsitemap/cms_plugins.py
@@ -19,8 +19,9 @@ class HtmlSitemapPlugin(CMSPluginBase):
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)
pages = pages.filter(level__gte=instance.level_min,
level__lte=instance.level_max,
publisher_is_draft=False)
if not instance.in_navigation is None:
pages = pages.filter(in_navigation=instance.in_navigation)
if instance.match_language:

0 comments on commit c118c89

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