Skip to content
Snippets Groups Projects
Unverified Commit d8774e4f authored by Nimisha Asthagiri's avatar Nimisha Asthagiri Committed by GitHub
Browse files

Merge pull request #23555 from edx/arch/django2-bulk-email

Django2 bulk_email: bytestring conversion
parents c1c447b7 90a330d0
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment