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
e2332d19
Commit
e2332d19
authored
May 20, 2014
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix old dashboard list cohorts
parent
a7139a84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
common/djangoapps/course_groups/views.py
+1
-1
lms/djangoapps/instructor/views/legacy.py
+1
-1
lms/urls.py
+6
-6
No files found.
common/djangoapps/course_groups/views.py
View file @
e2332d19
...
...
@@ -220,6 +220,6 @@ def debug_cohort_mgmt(request, course_key):
context
=
{
'cohorts_ajax_url'
:
reverse
(
'cohorts'
,
kwargs
=
{
'course_
id
'
:
course_key
.
to_deprecated_string
()}
kwargs
=
{
'course_
key
'
:
course_key
.
to_deprecated_string
()}
)}
return
render_to_response
(
'/course_groups/debug.html'
,
context
)
lms/djangoapps/instructor/views/legacy.py
View file @
e2332d19
...
...
@@ -1035,7 +1035,7 @@ def instructor_dashboard(request, course_id):
'course_errors'
:
modulestore
()
.
get_course_errors
(
course
.
id
),
'instructor_tasks'
:
instructor_tasks
,
'offline_grade_log'
:
offline_grades_available
(
course_key
),
'cohorts_ajax_url'
:
reverse
(
'cohorts'
,
kwargs
=
{
'course_
id
'
:
course_key
.
to_deprecated_string
()}),
'cohorts_ajax_url'
:
reverse
(
'cohorts'
,
kwargs
=
{
'course_
key
'
:
course_key
.
to_deprecated_string
()}),
'analytics_results'
:
analytics_results
,
'disable_buttons'
:
disable_buttons
,
...
...
lms/urls.py
View file @
e2332d19
...
...
@@ -300,21 +300,21 @@ if settings.COURSEWARE_ENABLED:
'open_ended_grading.views.take_action_on_flags'
,
name
=
'open_ended_flagged_problems_take_action'
),
# Cohorts management
url
(
r'^courses/(?P<course_
id
>[^/]+/[^/]+/[^/]+)/cohorts$'
,
url
(
r'^courses/(?P<course_
key
>[^/]+/[^/]+/[^/]+)/cohorts$'
,
'course_groups.views.list_cohorts'
,
name
=
"cohorts"
),
url
(
r'^courses/(?P<course_
id
>[^/]+/[^/]+/[^/]+)/cohorts/add$'
,
url
(
r'^courses/(?P<course_
key
>[^/]+/[^/]+/[^/]+)/cohorts/add$'
,
'course_groups.views.add_cohort'
,
name
=
"add_cohort"
),
url
(
r'^courses/(?P<course_
id
>[^/]+/[^/]+/[^/]+)/cohorts/(?P<cohort_id>[0-9]+)$'
,
url
(
r'^courses/(?P<course_
key
>[^/]+/[^/]+/[^/]+)/cohorts/(?P<cohort_id>[0-9]+)$'
,
'course_groups.views.users_in_cohort'
,
name
=
"list_cohort"
),
url
(
r'^courses/(?P<course_
id
>[^/]+/[^/]+/[^/]+)/cohorts/(?P<cohort_id>[0-9]+)/add$'
,
url
(
r'^courses/(?P<course_
key
>[^/]+/[^/]+/[^/]+)/cohorts/(?P<cohort_id>[0-9]+)/add$'
,
'course_groups.views.add_users_to_cohort'
,
name
=
"add_to_cohort"
),
url
(
r'^courses/(?P<course_
id
>[^/]+/[^/]+/[^/]+)/cohorts/(?P<cohort_id>[0-9]+)/delete$'
,
url
(
r'^courses/(?P<course_
key
>[^/]+/[^/]+/[^/]+)/cohorts/(?P<cohort_id>[0-9]+)/delete$'
,
'course_groups.views.remove_user_from_cohort'
,
name
=
"remove_from_cohort"
),
url
(
r'^courses/(?P<course_
id
>[^/]+/[^/]+/[^/]+)/cohorts/debug$'
,
url
(
r'^courses/(?P<course_
key
>[^/]+/[^/]+/[^/]+)/cohorts/debug$'
,
'course_groups.views.debug_cohort_mgmt'
,
name
=
"debug_cohort_mgmt"
),
...
...
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