changeset 298:4f032a6e21f8

Fix #139; when editing a user's post, the post author's signature should appear with the post, not the user (moderator) making the edit).
author Brian Neal <bgneal@gmail.com>
date Mon, 10 Jan 2011 03:33:21 +0000 (2011-01-10)
parents 69498a43e636
children c7c427411f03
files gpp/forums/views/main.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/forums/views/main.py	Sun Jan 09 21:16:08 2011 +0000
+++ b/gpp/forums/views/main.py	Mon Jan 10 03:33:21 2011 +0000
@@ -389,7 +389,7 @@
     else:
         form = PostForm(instance=post, topic_name=topic_name)
 
-    post.user_profile = request.user.get_profile()
+    post.user_profile = post.user.get_profile()
 
     return render_to_response('forums/edit_post.html', {
         'forum': post.topic.forum,