diff gpp/forums/feeds.py @ 177:9b63ad1f2ad2

Fixing #59, again. Django ticket 13093 was fixed allowing cache_page to work in the URLconf.
author Brian Neal <bgneal@gmail.com>
date Mon, 15 Mar 2010 03:26:38 +0000
parents b7ac381996e8
children 2a03c69792d8
line wrap: on
line diff
--- a/gpp/forums/feeds.py	Thu Mar 11 02:34:07 2010 +0000
+++ b/gpp/forums/feeds.py	Mon Mar 15 03:26:38 2010 +0000
@@ -3,8 +3,6 @@
 from django.contrib.syndication.views import Feed
 from django.core.exceptions import ObjectDoesNotExist
 from django.shortcuts import get_object_or_404
-from django.utils.decorators import method_decorator
-from django.views.decorators.cache import cache_page
 
 from forums.models import Forum
 from forums.models import Post
@@ -18,10 +16,6 @@
     author_name = 'Brian Neal'
     author_email = 'admin@surfguitar101.com'
 
-    @method_decorator(cache_page(15 * 60))
-    def __call__(self, request, *args, **kwargs):
-        return super(ForumsFeed, self).__call__(request, *args, **kwargs)
-
     def get_object(self, request, forum_slug):
         # only return public forums
         if forum_slug: