diff gpp/forums/views.py @ 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 f8f4514b806a
children 3ae999b0c53b
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', {