summaryrefslogtreecommitdiff
path: root/app/jrnl/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-02-17 07:41:56 -0600
committerluxagraf <sng@luxagraf.net>2018-02-17 07:41:56 -0600
commited38503199f2e6caaaaeaaa8fc391eb668e799c0 (patch)
tree1ee6e53d1e0d10aba1f0cd3f579af80344dc4457 /app/jrnl/views.py
parentc8380e8ef4d69591b788085d758cce1c20cb2018 (diff)
added a /latest/ url for redirecting social media like instagram
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/"