# HG changeset patch # User Brian Neal # Date 1256612176 0 # Node ID b28d30848c57256ea8cbd75578c04f7737b35eaa # Parent 98d658afd4bf0e8d11f8e5eef96bb0154b8d68f1 Forums: monkey-patch the user profile onto the post object when doing a quick ajax reply. diff -r 98d658afd4bf -r b28d30848c57 gpp/forums/views.py --- 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', {