Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
6af4af51
Commit
6af4af51
authored
Jul 14, 2015
by
Jonathan Piacenti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inline discussion cohort display when no longer cohorted.
parent
c6b36e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
lms/djangoapps/django_comment_client/forum/views.py
+2
-1
No files found.
lms/djangoapps/django_comment_client/forum/views.py
View file @
6af4af51
...
@@ -198,7 +198,7 @@ def _set_group_names(course_id, threads):
...
@@ -198,7 +198,7 @@ def _set_group_names(course_id, threads):
""" Adds group name if the thread has a group id"""
""" Adds group name if the thread has a group id"""
for
thread
in
threads
:
for
thread
in
threads
:
if
thread
.
get
(
'group_id'
):
if
thread
.
get
(
'group_id'
)
and
is_course_cohorted
(
course_id
)
:
thread
[
'group_name'
]
=
get_cohort_by_id
(
course_id
,
thread
.
get
(
'group_id'
))
.
name
thread
[
'group_name'
]
=
get_cohort_by_id
(
course_id
,
thread
.
get
(
'group_id'
))
.
name
thread
[
'group_string'
]
=
"This post visible only to Group
%
s."
%
(
thread
[
'group_name'
])
thread
[
'group_string'
]
=
"This post visible only to Group
%
s."
%
(
thread
[
'group_name'
])
else
:
else
:
...
@@ -364,6 +364,7 @@ def single_thread(request, course_key, discussion_id, thread_id):
...
@@ -364,6 +364,7 @@ def single_thread(request, course_key, discussion_id, thread_id):
)
)
except
cc
.
utils
.
CommentClientRequestError
as
e
:
except
cc
.
utils
.
CommentClientRequestError
as
e
:
if
e
.
status_code
==
404
:
if
e
.
status_code
==
404
:
print
"Can't find it!"
raise
Http404
raise
Http404
raise
raise
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment