Permalink
Browse files

{% if display_form %}

	<form id="commentform" action="{% url djog_postfree %}" method="post">
		<p><input type="text" id="id_person_name" name="person_name" size="22"/> <label for="id_person_name"><small>Name(required)</small></label></p>
		<p><textarea name="comment" id="id_comment" rows="10" cols="60" ></textarea></p>
		<p><input type="hidden" name="options" value="{{ options }}" />
		<input type="hidden" name="target" value="{{ target }}" />
		<input type="hidden" name="gonzo" value="{{ hash }}" />
		<input type="hidden" name="url" value="{{ object.get_absolute_url }}" /></p>
		<p><input id="submit" type="submit" name="post" value="Post comment" /></p>
	</form>
{% endif %}


git-svn-id: file:///Users/brian/Backups/S3/backups/Wednesday/brian/svn/djog/trunk@48 95ab7de8-677b-4562-a266-b8acc9dd993c
  • Loading branch information...
1 parent 354db01 commit 2eb0d95111775e8326139a0cff6da30ee4b0effa @alex alex committed Oct 23, 2007
Showing with 2 additions and 2 deletions.
  1. +1 −1 djog/feeds.py
  2. +1 −1 djog/templates/comments/freeform.html
View
@@ -30,7 +30,7 @@ def description(self, obj):
return "The latest comments on \"%s\"" % obj.title
def items(self, obj):
- return FreeComment.objects.filter(content_type='14').filter(object_id=obj.pk).order_by('-submit_date')[:10]
+ return FreeComment.objects.filter(content_type='12').filter(object_id=obj.pk).order_by('-submit_date')[:10]
class LatestEntriesByTag(Feed):
def get_object(self, bits):
@@ -5,7 +5,7 @@
<p><input type="hidden" name="options" value="{{ options }}" />
<input type="hidden" name="target" value="{{ target }}" />
<input type="hidden" name="gonzo" value="{{ hash }}" />
- <input type="hidden" name="url" value="{{ request.get_full_path }}" /></p>
+ <input type="hidden" name="url" value="{{ object.get_absolute_url }}" /></p>
<p><input id="submit" type="submit" name="post" value="Post comment" /></p>
</form>
{% endif %}

0 comments on commit 2eb0d95

Please sign in to comment.