summaryrefslogtreecommitdiff
path: root/app/posts/views/essay_views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-03-10 09:31:05 -0500
committerluxagraf <sng@luxagraf.net>2024-03-10 09:31:05 -0500
commit21795671955fb4d675b740bba73b4d4f90d37739 (patch)
tree04e4ea4c05e2512876916669854b1ef5aa4f6e7c /app/posts/views/essay_views.py
parente491ff1a198303d36abc2dbd2b7e7a9760542d8c (diff)
posts: added template option for photo posts, got rid of some things
Diffstat (limited to 'app/posts/views/essay_views.py')
-rw-r--r--app/posts/views/essay_views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/posts/views/essay_views.py b/app/posts/views/essay_views.py
index 76a022c..41fbc03 100644
--- a/app/posts/views/essay_views.py
+++ b/app/posts/views/essay_views.py
@@ -71,7 +71,11 @@ class EssayDetailView(LuxDetailView):
def get_template_names(self):
obj = self.get_object()
- return ["posts/essay_detail.html"]
+ if obj.template_name == 1:
+ t = "posts/essay_detail_lt.html"
+ else:
+ t = "posts/essay_detail.html"
+ return t
class EssayDetailViewTXT(EssayDetailView):