Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed lastmod() in djangoproject.com sitemap classes, because comme…

…nts will throw that out of whack

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6b095015fdf30f0cb6a3db5e239327df7e8be0a0 1 parent e1937b4
adrian authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 django_website/sitemaps.py
View
8 django_website/sitemaps.py
@@ -35,8 +35,8 @@ class WeblogSitemap(Sitemap):
def items(self):
return Entry.objects.filter(pub_date__lte=datetime.datetime.now())
- def lastmod(self, obj):
- return obj.pub_date
+ # 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.
class DocumentationSitemap(Sitemap):
changefreq = 'weekly'
@@ -45,5 +45,5 @@ class DocumentationSitemap(Sitemap):
def items(self):
return Document.objects.all()
- def lastmod(self, obj):
- return obj.last_updated
+ # lastmod is not implemented, because documentation contains comments.
+ # We'd rather not look up the date of the latest comment -- not worth the overhead.
Please sign in to comment.
Something went wrong with that request. Please try again.