Skip to content

Commit

Permalink
Just a style update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Jasjukaitis committed Apr 18, 2013
1 parent 3664ac5 commit c118c89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmsplugin_htmlsitemap/cms_plugins.py
Expand Up @@ -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:
Expand Down

0 comments on commit c118c89

Please sign in to comment.