From 32e0c580f0d1d6f82b5c33ad22f56d77144fa3cb Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 2 Mar 2013 19:50:14 -0500 Subject: [PATCH 1/3] fix --- lms/djangoapps/django_comment_client/base/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/django_comment_client/base/views.py b/lms/djangoapps/django_comment_client/base/views.py index c93ca5f308..94192c368e 100644 --- a/lms/djangoapps/django_comment_client/base/views.py +++ b/lms/djangoapps/django_comment_client/base/views.py @@ -91,7 +91,8 @@ 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 From 949c95ea0069fc25db6150881270f216f8fd7ace Mon Sep 17 00:00:00 2001 From: Kevin Chugh Date: Sat, 2 Mar 2013 19:51:59 -0500 Subject: [PATCH 2/3] 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() From a9804a33493b8dfecb25914208f193a1df218ba9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 4 Mar 2013 10:57:37 -0500 Subject: [PATCH 3/3] proper tab --- lms/djangoapps/django_comment_client/base/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/django_comment_client/base/views.py b/lms/djangoapps/django_comment_client/base/views.py index 81b43b2849..d93ea19f44 100644 --- a/lms/djangoapps/django_comment_client/base/views.py +++ b/lms/djangoapps/django_comment_client/base/views.py @@ -112,7 +112,7 @@ def create_thread(request, course_id, commentable_id): group_id = user_group_id if group_id: - thread.update_attributes(group_id=group_id) + thread.update_attributes(group_id=group_id) thread.save()