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
1f593428
Commit
1f593428
authored
Mar 08, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix metadata introspection in course admin page
parent
6395745c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
lms/djangoapps/instructor/views.py
+5
-1
local-requirements.txt
+1
-1
No files found.
lms/djangoapps/instructor/views.py
View file @
1f593428
...
...
@@ -88,7 +88,11 @@ def instructor_dashboard(request, course_id):
data
=
[[
'# Enrolled'
,
CourseEnrollment
.
objects
.
filter
(
course_id
=
course_id
)
.
count
()]]
data
+=
compute_course_stats
(
course
)
.
items
()
if
request
.
user
.
is_staff
:
data
.
append
([
'metadata'
,
escape
(
str
(
course
.
_model_data
))])
for
field
in
course
.
fields
:
data
.
append
([
field
.
name
,
json
.
dumps
(
field
.
read_json
(
course
))])
for
namespace
in
course
.
namespaces
:
for
field
in
getattr
(
course
,
namespace
)
.
fields
:
data
.
append
([
"{}.{}"
.
format
(
namespace
,
field
.
name
),
json
.
dumps
(
field
.
read_json
(
course
))])
datatable
[
'data'
]
=
data
def
return_csv
(
fn
,
datatable
,
fp
=
None
):
...
...
local-requirements.txt
View file @
1f593428
...
...
@@ -6,4 +6,4 @@
# XBlock:
# Might change frequently, so put it in local-requirements.txt,
# but conceptually is an external package, so it is in a separate repo.
-e git+ssh://git@github.com/MITx/xmodule-debugger@
e3c4bc
#egg=XBlock
-e git+ssh://git@github.com/MITx/xmodule-debugger@
857dcfe8
#egg=XBlock
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