summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-11-18 20:11:22 -0600
committerluxagraf <sng@luxagraf.net>2024-11-18 20:11:22 -0600
commitbefd652f9d47167ca56893c6b6d2dc70bd1a4c30 (patch)
treeec67dcd4481e1d177dbe5e9e090e2d47b4d08b93 /app
parent84abb974c8fc4cf74e929d8497b29771e7d9c84a (diff)
jrnl: fixed an old weird bug where I could not delete pro/epiloguesHEADmaster
Diffstat (limited to 'app')
-rw-r--r--app/posts/models.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/posts/models.py b/app/posts/models.py
index 80153e0..377225f 100644
--- a/app/posts/models.py
+++ b/app/posts/models.py
@@ -209,10 +209,8 @@ class Post(models.Model):
prods = render_products(md)
print(self.title)
self.body_html = markdown_to_html(prods)
- if self.epilogue_markdown:
- self.epilogue_html = markdown_to_html(self.epilogue_markdown)
- if self.prologue_markdown:
- self.prologue_html = markdown_to_html(self.prologue_markdown)
+ self.epilogue_html = markdown_to_html(self.epilogue_markdown)
+ self.prologue_html = markdown_to_html(self.prologue_markdown)
self.has_video = parse_video(self.body_html)
if self.point:
try: