X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..416900811aee814428b3516f048cd2bf245179f7:/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