From f1cb86ceb684c18fdc8703c46c6ff52737302eec Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Fri, 22 Oct 2010 13:59:00 -0400 Subject: [PATCH] Corrected NewsletterView add_item method to join a list of author full_names instead of a QuerySet of models. --- contrib/penfield/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py index 6da87a6..6550f8a 100644 --- a/contrib/penfield/models.py +++ b/contrib/penfield/models.py @@ -421,7 +421,7 @@ class NewsletterView(MultiView, FeedMultiViewMixin): def add_item(self, feed, obj, kwargs=None): defaults = { 'title': obj.title, - 'author_name': ', '.join(obj.authors), + 'author_name': ', '.join([author.get_full_name() for author in obj.authors.all()]), 'pubdate': obj.date, 'description': obj.lede or obj.full_text, 'categories': [tag.name for tag in obj.tags.all()] -- 2.20.1