Permalink
Browse files

fixes #262 cirular imports in sitemap.py

  • Loading branch information...
1 parent 51b8d27 commit 5f1bdff2723510057f5ab1624cf10cdb5d1baf49 @digi604 digi604 committed Nov 20, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 cms/sitemaps/cms_sitemap.py
@@ -1,12 +1,11 @@
from django.contrib.sitemaps import Sitemap
-from cms.utils.moderator import get_page_queryset
-from cms.models import Page
class CMSSitemap(Sitemap):
changefreq = "monthly"
priority = 0.5
def items(self):
+ from cms.utils.moderator import get_page_queryset
page_queryset = get_page_queryset(None)
all_pages = page_queryset.published()
return all_pages

0 comments on commit 5f1bdff

Please sign in to comment.