]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/feed.py
New optional admin interface, and closing OSQA 253.
[osqa.git] / forum / feed.py
index 0a0882548eb33f8d19cf61253fa26f4b4452f574..0f8deaec3cfba590bb02d26a4130727498035c91 100644 (file)
@@ -13,9 +13,9 @@
 from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
 from django.utils.translation import ugettext as _
 from models import Question
-from django.conf import settings
+from forum import settings
 class RssLastestQuestionsFeed(Feed):
-    title = str(settings.APP_TITLE) + _(' - ')+ _('latest questions')
+    title = settings.APP_TITLE + _(' - ')+ _('latest questions')
     link = settings.APP_URL #+ '/' + _('question/')
     description = settings.APP_DESCRIPTION
     #ttl = 10
@@ -34,7 +34,7 @@ class RssLastestQuestionsFeed(Feed):
         return item.added_at
 
     def items(self, item):
-       return Question.objects.filter(deleted=False).order_by('-last_activity_at')[:30]
+       return Question.objects.filter(deleted=None).order_by('-last_activity_at')[:30]
 
 def main():
     pass