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
62fdf33c
Commit
62fdf33c
authored
Mar 26, 2014
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2938 from edx/waheed/lms2167-show-submission-history-not-internationalized
Internationalized submission history view.
parents
de72759c
94af6636
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lms/djangoapps/courseware/views.py
+6
-2
No files found.
lms/djangoapps/courseware/views.py
View file @
62fdf33c
...
...
@@ -2,6 +2,7 @@ import logging
import
urllib
from
collections
import
defaultdict
from
django.utils.translation
import
ugettext
as
_
from
django.conf
import
settings
from
django.core.context_processors
import
csrf
...
...
@@ -721,9 +722,12 @@ def submission_history(request, course_id, student_username, location):
student_id
=
student
.
id
)
except
User
.
DoesNotExist
:
return
HttpResponse
(
escape
(
"User {0} does not exist."
.
format
(
student_username
)))
return
HttpResponse
(
escape
(
_
(
u'User {username} does not exist.'
)
.
format
(
username
=
student_username
)))
except
StudentModule
.
DoesNotExist
:
return
HttpResponse
(
escape
(
"{0} has never accessed problem {1}"
.
format
(
student_username
,
location
)))
return
HttpResponse
(
escape
(
_
(
u'User {username} has never accessed problem {location}'
)
.
format
(
username
=
student_username
,
location
=
location
)))
history_entries
=
StudentModuleHistory
.
objects
.
filter
(
student_module
=
student_module
...
...
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