diff options
author | luxagraf <sng@luxagraf.net> | 2018-02-17 07:41:56 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-02-17 07:41:56 -0600 |
commit | ed38503199f2e6caaaaeaaa8fc391eb668e799c0 (patch) | |
tree | 1ee6e53d1e0d10aba1f0cd3f579af80344dc4457 /app/jrnl/views.py | |
parent | c8380e8ef4d69591b788085d758cce1c20cb2018 (diff) |
added a /latest/ url for redirecting social media like instagram
Diffstat (limited to 'app/jrnl/views.py')
-rw-r--r-- | app/jrnl/views.py | 7 |
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/" |