Changeset 3704
- Timestamp:
- 08/31/06 18:58:38 (2 years ago)
- Files:
-
- djangoproject.com/django_website/sitemaps.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
djangoproject.com/django_website/sitemaps.py
r3702 r3704 36 36 return Entry.objects.filter(pub_date__lte=datetime.datetime.now()) 37 37 38 def lastmod(self, obj):39 return obj.pub_date38 # 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. 40 40 41 41 class DocumentationSitemap(Sitemap): … … 46 46 return Document.objects.all() 47 47 48 def lastmod(self, obj):49 return obj.last_updated48 # 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.
