From: hernani Date: Sat, 8 May 2010 18:05:52 +0000 (+0000) Subject: Fix in sitemap. X-Git-Tag: live~950 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/ecd8090a2f7cec3ae97a2f3dea9fea6091862414?hp=d5b584059538a1d758b87a59246a79b53fcf186b Fix in sitemap. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@179 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/sitemap.py b/forum/sitemap.py index c0c60b5..39dcdc1 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(deleted=None) def lastmod(self, obj): return obj.last_activity_at