summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/jrnl/views.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/jrnl/views.py b/app/jrnl/views.py
index bbeccca..f69fd8d 100644
--- a/app/jrnl/views.py
+++ b/app/jrnl/views.py
@@ -114,3 +114,10 @@ class JrnlRSSFeedView(Feed):
def items(self):
return Entry.objects.filter(status__exact=1).order_by('-pub_date')[:10]
+
+ def item_pubdate(self, item):
+ """
+ Takes an item, as returned by items(), and returns the item's
+ pubdate.
+ """
+ return item.pub_date