]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/sitemap.py
cleaning the repo
[osqa.git] / forum / sitemap.py
diff --git a/forum/sitemap.py b/forum/sitemap.py
deleted file mode 100644 (file)
index c0c60b5..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-from django.contrib.sitemaps import Sitemap
-from forum.models import Question
-
-class QuestionsSitemap(Sitemap):
-    changefreq = 'daily'
-    priority = 0.5
-    def items(self):
-        return Question.objects.exclude(deleted=True)
-
-    def lastmod(self, obj):
-        return obj.last_activity_at
-
-    def location(self, obj):
-        return obj.get_absolute_url()