1
2
3
4
5
6
7
8
9
10
11
12
13
|
from django.contrib.sitemaps import Sitemap
from widelands.news.models import Post
class NewsSitemap(Sitemap):
changefreq = "never"
priority = 0.5
def items(self):
return Post.objects.published()
def lastmod(self, obj):
return obj.publish
|