From: hernani Date: Mon, 28 Jun 2010 10:23:13 +0000 (+0000) Subject: Fixes a compatibility error with the feed api from django 1.1 and 1.2. X-Git-Tag: live~680 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/0f7b31c39bb2b3e72e99168172e5192118f43eec Fixes a compatibility error with the feed api from django 1.1 and 1.2. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@454 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/feed.py b/forum/feed.py index e00f33b..2575e66 100644 --- a/forum/feed.py +++ b/forum/feed.py @@ -1,9 +1,7 @@ try: from django.contrib.syndication.views import Feed, FeedDoesNotExist - old_version = False except: from django.contrib.syndication.feeds import Feed, FeedDoesNotExist - old_version = True from django.utils.translation import ugettext as _ from models import Question @@ -19,9 +17,6 @@ class RssQuestionFeed(Feed): self._question_list = question_list self._url = request.path - if old_version: - super(Feed, self).__init__(request, '') - def title(self): return self._title