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
875deed5
Commit
875deed5
authored
May 15, 2017
by
Rabia Iftikhar
Committed by
GitHub
May 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15092 from edx/ri/EDUCATOR-217-364-add-logs-bulk-email
EDUCATOR-217-364 add logs in bulk email
parents
8540e8f4
ffa9b7ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lms/djangoapps/instructor/views/api.py
+3
-0
No files found.
lms/djangoapps/instructor/views/api.py
View file @
875deed5
...
...
@@ -2523,6 +2523,7 @@ def send_email(request, course_id):
course_id
=
CourseKey
.
from_string
(
course_id
)
if
not
BulkEmailFlag
.
feature_enabled
(
course_id
):
log
.
warning
(
u'Email is not enabled for course
%
s'
,
course_id
)
return
HttpResponseForbidden
(
"Email is not enabled for this course."
)
targets
=
json
.
loads
(
request
.
POST
.
get
(
"send_to"
))
...
...
@@ -2564,6 +2565,8 @@ def send_email(request, course_id):
from_addr
=
from_addr
)
except
ValueError
as
err
:
log
.
exception
(
u'Cannot create course email for course
%
s requested by user
%
s for targets
%
s'
,
course_id
,
request
.
user
,
targets
)
return
HttpResponseBadRequest
(
repr
(
err
))
# Submit the task, so that the correct InstructorTask object gets created (for monitoring purposes)
...
...
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