Added description_template
authorEriol
Tue, 27 Nov 2012 05:23:44 +0100
changeset 84898e2017e061
parent 83 797f437a8340
child 85 41e7540b60a1
Added description_template
blog/feeds.py
     1.1 --- a/blog/feeds.py	Tue Nov 27 04:53:18 2012 +0100
     1.2 +++ b/blog/feeds.py	Tue Nov 27 05:23:44 2012 +0100
     1.3 @@ -10,6 +10,7 @@
     1.4  
     1.5  class LatestEntriesFeed(Feed):
     1.6      title = '%s: latest entries' % settings.BLOG_TITLE
     1.7 +    description_template = 'feeds/entries_description.html'
     1.8  
     1.9      def items(self):
    1.10          return Entry.live.all()[:10]
    1.11 @@ -24,6 +25,7 @@
    1.12          return item.author
    1.13  
    1.14  class CategoryFeed(LatestEntriesFeed):
    1.15 +    description_template = 'feeds/category_description.html'
    1.16  
    1.17      def get_object(self, request, slug):
    1.18          return get_object_or_404(Category, slug__exact=slug)