Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Only show published blog entries in sitemap.

  • Loading branch information...
commit 0ea9363368821489583c5dc44bc11cb1a5b4f273 1 parent ba8fd92
Julien Phalip authored May 11, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django_website/sitemaps.py
2  django_website/sitemaps.py
@@ -34,7 +34,7 @@ class WeblogSitemap(Sitemap):
34 34
     priority = 0.4
35 35
 
36 36
     def items(self):
37  
-        return Entry.objects.filter(pub_date__lte=datetime.datetime.now())
  37
+        return Entry.objects.published()
38 38
 
39 39
     # lastmod is not implemented, because weblog pages contain comments.
40 40
     # We'd rather not look up the date of the latest comment -- not worth the overhead.

0 notes on commit 0ea9363

Please sign in to comment.
Something went wrong with that request. Please try again.