This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
s2forums/sitemap.py
2009-01-05 14:30:08 +02:00

21 lines
No EOL
441 B
Python

from django.contrib.sitemaps import Sitemap
from apps.forum.models import Category, Forum, Topic
class SitemapCategory(Sitemap):
priority = 0.5
def items(self):
return Category.objects.all()
class SitemapForum(Sitemap):
priority = 0.5
def items(self):
return Forum.objects.all()
class SitemapTopic(Sitemap):
priority = 0.5
def items(self):
return Topic.objects.all()