summaryrefslogtreecommitdiff
path: root/app/jrnl/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/jrnl/views.py')
-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 28d44a1..75501f4 100644
--- a/app/jrnl/views.py
+++ b/app/jrnl/views.py
@@ -110,6 +110,13 @@ class HomepageList(ListView):
return context
+class JrnlLatestView(EntryDetailView):
+ template_name = "details/entry_latest.html"
+
+ def get_object(self):
+ obj = self.model.objects.latest()
+ return obj
+
class JrnlRSSFeedView(Feed):
title = "Luxagraf: Topographical Writings"
link = "/jrnl/"