aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/journal/models.py')
-rw-r--r--bn_django/journal/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bn_django/journal/models.py b/bn_django/journal/models.py
index 962efee..8836122 100644
--- a/bn_django/journal/models.py
+++ b/bn_django/journal/models.py
@@ -32,6 +32,9 @@ class Entry(JournalCommon):
title = models.CharField("entry title", max_length=384)
slug = models.SlugField()
+ def get_absolute_url(self):
+ return "/journal/%s/"%self.slug
+
class MicroEntry(JournalCommon):
html_content = models.TextField("html format content", blank=False)
text_content = models.TextField("text version of content", blank=True,null=True)