~widelands-dev/widelands-website/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
from pybb.models import Forum
from mainpage.sitemaps import SitemapHTTPS


class ForumSitemap(SitemapHTTPS):
    changefreq = 'monthly'
    priority = 0.5

    def items(self):
        return Forum.objects.all()

    def lastmod(self, obj):
        return obj.updated