Django

Code

Changeset 3704

Show
Ignore:
Timestamp:
08/31/06 18:58:38 (2 years ago)
Author:
adrian
Message:

Removed lastmod() in djangoproject.com sitemap classes, because comments will throw that out of whack

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • djangoproject.com/django_website/sitemaps.py

    r3702 r3704  
    3636        return Entry.objects.filter(pub_date__lte=datetime.datetime.now()) 
    3737 
    38     def lastmod(self, obj): 
    39         return obj.pub_date 
     38    # lastmod is not implemented, because weblog pages contain comments. 
     39    # We'd rather not look up the date of the latest comment -- not worth the overhead. 
    4040 
    4141class DocumentationSitemap(Sitemap): 
     
    4646        return Document.objects.all() 
    4747 
    48     def lastmod(self, obj): 
    49         return obj.last_updated 
     48    # lastmod is not implemented, because documentation contains comments. 
     49    # We'd rather not look up the date of the latest comment -- not worth the overhead.