Permalink
Browse files

Fix a minor undefined name bug

  • Loading branch information...
1 parent 15f4822 commit 510aa5c9f8f96ff017cd78522c36ba140008445d @paltman paltman committed Jan 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 agora/views.py
View
@@ -98,7 +98,7 @@ def forum_thread(request, thread_id):
reply.save()
# subscribe the poster to the thread if requested (default value is True)
- if form.cleaned_data["subscribe"]:
+ if reply_form.cleaned_data["subscribe"]:
thread.subscribe(reply.author, "email")
# all users are automatically subscribed to onsite
@@ -166,7 +166,7 @@ def post_create(request, forum_id):
return render_to_response("agora/post_create.html", {
"form": form,
"member": member,
- "forum_id": forum_id,
+ "forum": forum
}, context_instance=RequestContext(request))

0 comments on commit 510aa5c

Please sign in to comment.