comparison gpp/forums/views/main.py @ 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
parents 26fc9ac9a0eb
children c550933ff5b6
comparison
equal deleted inserted replaced
297:69498a43e636 298:4f032a6e21f8
387 387
388 return HttpResponseRedirect(post.get_absolute_url()) 388 return HttpResponseRedirect(post.get_absolute_url())
389 else: 389 else:
390 form = PostForm(instance=post, topic_name=topic_name) 390 form = PostForm(instance=post, topic_name=topic_name)
391 391
392 post.user_profile = request.user.get_profile() 392 post.user_profile = post.user.get_profile()
393 393
394 return render_to_response('forums/edit_post.html', { 394 return render_to_response('forums/edit_post.html', {
395 'forum': post.topic.forum, 395 'forum': post.topic.forum,
396 'topic': post.topic, 396 'topic': post.topic,
397 'post': post, 397 'post': post,