Corrected NewsletterView add_item method to join a list of author full_names instead...
authorStephen Burrows <stephen.r.burrows@gmail.com>
Fri, 22 Oct 2010 17:59:00 +0000 (13:59 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Fri, 22 Oct 2010 17:59:00 +0000 (13:59 -0400)
contrib/penfield/models.py

index 6da87a6..6550f8a 100644 (file)
@@ -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()]