]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/sitemap.py
Adds the hability to create custom css. Fixes a small issue with admin area forms.
[osqa.git] / forum / sitemap.py
index c0c60b5eaef33294cabb1e6954b76f0aed398dd2..3606cab1147dffeac8eb51378a94fba1cc0c967c 100644 (file)
@@ -5,7 +5,7 @@ class QuestionsSitemap(Sitemap):
     changefreq = 'daily'
     priority = 0.5
     def items(self):
     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
 
     def lastmod(self, obj):
         return obj.last_activity_at