Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d8774e4f
Unverified
Commit
d8774e4f
authored
5 years ago
by
Nimisha Asthagiri
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #23555 from edx/arch/django2-bulk-email
Django2 bulk_email: bytestring conversion
parents
c1c447b7
90a330d0
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/bulk_email/views.py
+1
-2
1 addition, 2 deletions
lms/djangoapps/bulk_email/views.py
with
1 addition
and
2 deletions
lms/djangoapps/bulk_email/views.py
+
1
−
2
View file @
d8774e4f
...
...
@@ -35,9 +35,8 @@ def opt_out_email_updates(request, token, course_id):
Raises a 404 if there are any errors parsing the input.
"""
try
:
username
=
UsernameCipher
().
decrypt
(
token
)
username
=
UsernameCipher
().
decrypt
(
token
)
.
decode
(
"
utf-8
"
)
user
=
User
.
objects
.
get
(
username
=
username
)
course_key
=
CourseKey
.
from_string
(
course_id
)
course
=
get_course_by_id
(
course_key
,
depth
=
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment