~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to pybb/sitemap.py

  • Committer: franku
  • Date: 2016-11-04 08:07:18 UTC
  • mto: This revision was merged to the branch mainline in revision 434.
  • Revision ID: somal@arcor.de-20161104080718-291pc9xpym21wakc
each app has his own sitemap.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.contrib.sitemaps import Sitemap
 
2
from pybb.models import Forum
 
3
 
 
4
 
 
5
class ForumSitemap(Sitemap):
 
6
    changefreq = 'monthly'
 
7
    priority = 0.5
 
8
 
 
9
    def items(self):
 
10
        return Forum.objects.all()
 
11
 
 
12
    def lastmod(self, obj):
 
13
        return obj.updated