summaryrefslogtreecommitdiff
path: root/app/blog/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/blog/models.py')
-rw-r--r--app/blog/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/blog/models.py b/app/blog/models.py
index 2e30ccc..a764c5c 100644
--- a/app/blog/models.py
+++ b/app/blog/models.py
@@ -79,7 +79,10 @@ class Entry(models.Model):
return self.title
def get_absolute_url(self):
- return "/%s/%s" % (self.pub_date.strftime("%Y/%m").lower(), self.slug)
+ return "/jrnl/%s/%s" % (self.pub_date.strftime("%Y/%m").lower(), self.slug)
+
+ def get_absolute_url_old(self):
+ return "/%s/%s/" % (self.pub_date.strftime("%Y/%b/%d").lower(), self.slug)
def comment_period_open(self):
return self.enable_comments and datetime.datetime.today() - datetime.timedelta(30) <= self.pub_date