Mercurial > public > sg101
diff gpp/news/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 | b4305e18d3af |
line wrap: on
line diff
--- a/gpp/news/feeds.py Thu Mar 11 02:34:07 2010 +0000 +++ b/gpp/news/feeds.py Mon Mar 15 03:26:38 2010 +0000 @@ -2,8 +2,6 @@ This file contains the feed classes for the news application. """ from django.contrib.syndication.views import Feed -from django.utils.decorators import method_decorator -from django.views.decorators.cache import cache_page from news.models import Story from core.functions import get_full_name @@ -20,10 +18,6 @@ author_name = 'Brian Neal' author_email = 'admin@surfguitar101.com' - @method_decorator(cache_page(4 * 60 * 60)) - def __call__(self, request, *args, **kwargs): - return super(LatestNewsFeed, self).__call__(request, *args, **kwargs) - def feed_copyright(self): return copyright_str()