diff --git a/lms/djangoapps/django_comment_client/base/views.py b/lms/djangoapps/django_comment_client/base/views.py index c93ca5f308..d93ea19f44 100644 --- a/lms/djangoapps/django_comment_client/base/views.py +++ b/lms/djangoapps/django_comment_client/base/views.py @@ -91,7 +91,6 @@ def create_thread(request, course_id, commentable_id): 'user_id': request.user.id, }) - user = cc.User.from_django_user(request.user) #kevinchugh because the new requirement is that all groups will be determined @@ -112,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()