myles / django-s5

A Django reusable application for presentations powered by S5.

This URL has Read+Write access

django-s5 / sitemap.py
100644 15 lines (10 sloc) 0.315 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.contrib.sitemaps import Sitemap
from django.core.urlresolvers import reverse
 
from presentations.models import *
 
class PresentationSitemap(Sitemap):
changefreq = "monthly"
priority = 0.1
 
def item(self):
return Presentation.objects.all()
 
def lastmod(self, obj):
return obj.presentation_date