diff options
author | bnewbold <bnewbold@eta.mit.edu> | 2009-01-25 11:03:03 -0500 |
---|---|---|
committer | bnewbold <bnewbold@eta.mit.edu> | 2009-01-25 11:03:03 -0500 |
commit | 296dc07f010d8692028db682d02ef3e88e525f01 (patch) | |
tree | 2a40e74323a42ff18f4fb878db9b23239009fe89 /bn_django/journal | |
parent | 17dd049b947cb447628002bae3068581733565f1 (diff) | |
download | bnewnet-296dc07f010d8692028db682d02ef3e88e525f01.tar.gz bnewnet-296dc07f010d8692028db682d02ef3e88e525f01.zip |
tweaked comment templates some more
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 %} |