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
fd0dc92c
Commit
fd0dc92c
authored
Apr 01, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1772 from MITx/fix/brian/subhist-order
change submission history to be ordered by id
parents
24e64e39
23d96b25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/courseware/views.py
+2
-2
No files found.
lms/djangoapps/courseware/views.py
View file @
fd0dc92c
...
...
@@ -663,13 +663,13 @@ def submission_history(request, course_id, student_username, location):
.
format
(
student_username
,
location
))
history_entries
=
StudentModuleHistory
.
objects
\
.
filter
(
student_module
=
student_module
)
.
order_by
(
'-
create
d'
)
.
filter
(
student_module
=
student_module
)
.
order_by
(
'-
i
d'
)
# If no history records exist, let's force a save to get history started.
if
not
history_entries
:
student_module
.
save
()
history_entries
=
StudentModuleHistory
.
objects
\
.
filter
(
student_module
=
student_module
)
.
order_by
(
'-
create
d'
)
.
filter
(
student_module
=
student_module
)
.
order_by
(
'-
i
d'
)
context
=
{
'history_entries'
:
history_entries
,
...
...
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