Added Datefields for creation and last modied metadata. It's currently used for the sitemap.xml.

This commit is contained in:
2016-10-14 21:27:58 +02:00
parent 731828e1ee
commit 79efd1ce13
5 changed files with 120 additions and 57 deletions

View File

@@ -17,6 +17,5 @@ class EventSitemap(Sitemap):
return max(1 - delta, 0.1)
def lastmod(self, event):
return event.end
return min(event.end, timezone.now())
return event.date_modified