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
d5ca25e1
Commit
d5ca25e1
authored
Jun 10, 2015
by
Awais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECOM-1644 minor message updation.
parent
a3976705
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/djangoapps/student/admin.py
+2
-2
common/djangoapps/student/tests/test_admin_views.py
+1
-1
No files found.
common/djangoapps/student/admin.py
View file @
d5ca25e1
...
...
@@ -38,7 +38,7 @@ class CourseAccessRoleForm(forms.ModelForm):
try
:
course_key
=
CourseKey
.
from_string
(
course_id
)
except
InvalidKeyError
:
raise
forms
.
ValidationError
(
u"
Cannot make a valid CourseKey from id {}!"
.
format
(
course_id
)
)
raise
forms
.
ValidationError
(
u"
Invalid CourseID. Please check the format and re-try."
)
if
not
modulestore
()
.
has_course
(
course_key
):
raise
forms
.
ValidationError
(
u"Cannot find course with id {} in the modulestore"
.
format
(
course_id
))
...
...
@@ -72,7 +72,7 @@ class CourseAccessRoleForm(forms.ModelForm):
user
=
User
.
objects
.
get
(
email
=
email
)
except
Exception
:
raise
forms
.
ValidationError
(
u"Email
not exists. Could not find user by email address {email}.
"
.
format
(
u"Email
does not exist. Could not find {email}. Please re-enter email address
"
.
format
(
email
=
email
)
)
...
...
common/djangoapps/student/tests/test_admin_views.py
View file @
d5ca25e1
...
...
@@ -122,7 +122,7 @@ class AdminCourseRolesPageTest(ModuleStoreTestCase):
self
.
assertContains
(
response
,
"Email
not exists. Could not find user by email address {}
"
.
format
(
"Email
does not exist. Could not find {}. Please re-enter email address
"
.
format
(
email
)
)
...
...
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