changeset 122:b28d30848c57

Forums: monkey-patch the user profile onto the post object when doing a quick ajax reply.
author Brian Neal <bgneal@gmail.com>
date Tue, 27 Oct 2009 02:56:16 +0000
parents 98d658afd4bf
children 3ae999b0c53b
files gpp/forums/views.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/forums/views.py	Tue Oct 27 02:46:01 2009 +0000
+++ b/gpp/forums/views.py	Tue Oct 27 02:56:16 2009 +0000
@@ -213,6 +213,7 @@
 
         post = form.save(request.user, request.META.get("REMOTE_ADDR", ""))
         post.unread = True
+        post.user_profile = request.user.get_profile()
         _bump_post_count(request.user)
         _update_last_visit(request.user, form.topic)
         return render_to_response('forums/display_post.html', {