X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/87e592dc4c9e0321635350da8c9f1624554a604f..01eed1521a67afc04a8112b44ca4cd1c4a32cf00:/forum/feed.py diff --git a/forum/feed.py b/forum/feed.py index 02a7d3c..e74e80e 100644 --- a/forum/feed.py +++ b/forum/feed.py @@ -13,7 +13,7 @@ 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 = settings.APP_TITLE + _(' - ')+ _('latest questions') link = settings.APP_URL #+ '/' + _('question/') @@ -34,7 +34,7 @@ class RssLastestQuestionsFeed(Feed): return item.added_at def items(self, item): - return Question.objects.filter(deleted=None).order_by('-last_activity_at')[:30] + return Question.objects.filter_state(deleted=False).order_by('-last_activity_at')[:30] def main(): pass