aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal
diff options
context:
space:
mode:
authorbnewbold <bnewbold@eta.mit.edu>2009-01-25 11:03:03 -0500
committerbnewbold <bnewbold@eta.mit.edu>2009-01-25 11:03:03 -0500
commit296dc07f010d8692028db682d02ef3e88e525f01 (patch)
tree2a40e74323a42ff18f4fb878db9b23239009fe89 /bn_django/journal
parent17dd049b947cb447628002bae3068581733565f1 (diff)
downloadbnewnet-296dc07f010d8692028db682d02ef3e88e525f01.tar.gz
bnewnet-296dc07f010d8692028db682d02ef3e88e525f01.zip
tweaked comment templates some more
Diffstat (limited to 'bn_django/journal')
-rw-r--r--bn_django/journal/models.py3
-rw-r--r--bn_django/journal/templates/journal/entry_detail.html4
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 %}