From: Joseph Spiros Date: Thu, 6 Jan 2011 19:23:19 +0000 (-0500) Subject: Modified the feed behavior for blogs and newsletters to always use the full content... X-Git-Tag: philo-0.9~23 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/0eea7e496496023e9f68b4e1dc6a7956da7e917e 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. --- 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 {})