From 0eea7e496496023e9f68b4e1dc6a7956da7e917e Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Thu, 6 Jan 2011 14:23:19 -0500 Subject: [PATCH] Modified the feed behavior for blogs and newsletters to always use the full content of entries and articles. I am of the opinion that people using feed readers should not have to click through to the website to read the full text of either. --- contrib/penfield/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py index d3eea16..9f1b61b 100644 --- a/contrib/penfield/models.py +++ b/contrib/penfield/models.py @@ -197,7 +197,7 @@ class BlogView(MultiView, FeedMultiViewMixin): def add_item(self, feed, obj, kwargs=None): defaults = { 'title': obj.title, - 'description': obj.excerpt or obj.content, + 'description': obj.content, 'author_name': obj.author.get_full_name(), 'pubdate': obj.date } @@ -429,7 +429,7 @@ class NewsletterView(MultiView, FeedMultiViewMixin): 'title': obj.title, 'author_name': ', '.join([author.get_full_name() for author in obj.authors.all()]), 'pubdate': obj.date, - 'description': obj.lede or obj.full_text, + 'description': obj.full_text, 'categories': [tag.name for tag in obj.tags.all()] } defaults.update(kwargs or {}) -- 2.20.1