]> git.openstreetmap.org Git - osqa.git/commitdiff
Fixes a compatibility error with the feed api from django 1.1 and 1.2.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 28 Jun 2010 10:23:13 +0000 (10:23 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 28 Jun 2010 10:23:13 +0000 (10:23 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@454 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/feed.py

index e00f33b923f3c1eff83420d81a228c96ee14fa1c..2575e6669e21a0051c85ba4a4072ce408612b28a 100644 (file)
@@ -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