git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified the feed behavior for blogs and newsletters to always use the full content...
[philo.git]
/
contrib
/
penfield
/
models.py
diff --git
a/contrib/penfield/models.py
b/contrib/penfield/models.py
index
d3eea16
..
9f1b61b
100644
(file)
--- 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,
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
}
'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,
'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 {})
'categories': [tag.name for tag in obj.tags.all()]
}
defaults.update(kwargs or {})