From: Stephen Burrows Date: Fri, 22 Oct 2010 17:59:00 +0000 (-0400) Subject: Corrected NewsletterView add_item method to join a list of author full_names instead... X-Git-Tag: philo-0.9~27^2~1^2 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/f1cb86ceb684c18fdc8703c46c6ff52737302eec Corrected NewsletterView add_item method to join a list of author full_names instead of a QuerySet of models. --- 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()]