1 from django.contrib.sitemaps import Sitemap
2 from forum.models import Question
4 class QuestionsSitemap(Sitemap):
8 return Question.objects.exclude(deleted=True)
10 def lastmod(self, obj):
11 return obj.last_activity_at
13 def location(self, obj):
14 return obj.get_absolute_url()