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/')
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