~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to pybb/sitemap.py

  • Committer: Holger Rapp
  • Date: 2016-08-08 10:06:42 UTC
  • mto: This revision was merged to the branch mainline in revision 419.
  • Revision ID: sirver@gmx.de-20160808100642-z62vwqitxoyl5fh4
Added the apt-get update script I run every 30 days.

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