From 526d4b1d49b6429d37a6ea176e52a7b01db336be Mon Sep 17 00:00:00 2001 From: jsa Date: Tue, 10 Jun 2014 11:46:10 -0400 Subject: [PATCH] forums: fix assign_default_role to use the correct constant. --- common/djangoapps/django_comment_common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/django_comment_common/models.py b/common/djangoapps/django_comment_common/models.py index 67e33fb9eb..e5ec9c3f20 100644 --- a/common/djangoapps/django_comment_common/models.py +++ b/common/djangoapps/django_comment_common/models.py @@ -44,7 +44,7 @@ def assign_default_role(course_id, user): """ Assign forum default role 'Student' to user """ - role, __ = Role.objects.get_or_create(course_id=course_id, name="Student") + role, __ = Role.objects.get_or_create(course_id=course_id, name=FORUM_ROLE_STUDENT) user.roles.add(role)