Browse files

Only show published blog entries in sitemap.

  • Loading branch information...
1 parent ba8fd92 commit 0ea9363368821489583c5dc44bc11cb1a5b4f273 @jphalip jphalip committed May 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_website/sitemaps.py
View
2 django_website/sitemaps.py
@@ -34,7 +34,7 @@ class WeblogSitemap(Sitemap):
priority = 0.4
def items(self):
- return Entry.objects.filter(pub_date__lte=datetime.datetime.now())
+ return Entry.objects.published()
# lastmod is not implemented, because weblog pages contain comments.
# We'd rather not look up the date of the latest comment -- not worth the overhead.

0 comments on commit 0ea9363

Please sign in to comment.