From 949c95ea0069fc25db6150881270f216f8fd7ace Mon Sep 17 00:00:00 2001 From: Kevin Chugh Date: Sat, 2 Mar 2013 19:51:59 -0500 Subject: [PATCH] better fix --- lms/djangoapps/django_comment_client/base/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lms/djangoapps/django_comment_client/base/views.py b/lms/djangoapps/django_comment_client/base/views.py index 94192c368e..81b43b2849 100644 --- a/lms/djangoapps/django_comment_client/base/views.py +++ b/lms/djangoapps/django_comment_client/base/views.py @@ -91,8 +91,6 @@ def create_thread(request, course_id, commentable_id): 'user_id': request.user.id, }) - group_id = False - user = cc.User.from_django_user(request.user) #kevinchugh because the new requirement is that all groups will be determined @@ -113,8 +111,8 @@ def create_thread(request, course_id, commentable_id): # regular users always post with their own id. group_id = user_group_id - if group_id: - thread.update_attributes(group_id=group_id) + if group_id: + thread.update_attributes(group_id=group_id) thread.save()