From 296dc07f010d8692028db682d02ef3e88e525f01 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 25 Jan 2009 11:03:03 -0500 Subject: tweaked comment templates some more --- bn_django/journal/models.py | 3 +++ bn_django/journal/templates/journal/entry_detail.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'bn_django/journal') 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 %}
-

Post a comment

-{% render_comment_form for object %} {% get_comment_list for object as comments %} {% include "comment_list" %} +

Post a comment

+{% render_comment_form for object %}
{% endblock %} -- cgit v1.2.3