X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/a9eef437702d5df7a2f97010e6798c689371808c..9e40b5e5d7e26f4b8d3250cfbde23540a6205fd6:/forum/sitemap.py diff --git a/forum/sitemap.py b/forum/sitemap.py index c0c60b5..3606cab 100644 --- a/forum/sitemap.py +++ b/forum/sitemap.py @@ -5,7 +5,7 @@ class QuestionsSitemap(Sitemap): changefreq = 'daily' priority = 0.5 def items(self): - return Question.objects.exclude(deleted=True) + return Question.objects.filter_state(deleted=False) def lastmod(self, obj): return obj.last_activity_at