diff options
Diffstat (limited to 'bn_django/journal')
-rw-r--r-- | bn_django/journal/models.py | 3 | ||||
-rw-r--r-- | bn_django/journal/templates/journal/entry_detail.html | 4 |
2 files changed, 5 insertions, 2 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) diff --git a/bn_django/journal/templates/journal/entry_detail.html b/bn_django/journal/templates/journal/entry_detail.html index 45edd4b..9c74ed6 100644 --- a/bn_django/journal/templates/journal/entry_detail.html +++ b/bn_django/journal/templates/journal/entry_detail.html @@ -23,9 +23,9 @@ {% block commentary %} <div class='content' id='commentary'> -<h3>Post a comment</h3> -{% render_comment_form for object %} {% get_comment_list for object as comments %} {% include "comment_list" %} +<h3>Post a comment</h3> +{% render_comment_form for object %} </div> {% endblock %} |