Commit cabb1962 by cewing

MIT: CCX. Code Quality fixes

parent 12625a92
...@@ -101,7 +101,9 @@ def unenroll_email(poc, student_email, email_students=False, email_params=None): ...@@ -101,7 +101,9 @@ def unenroll_email(poc, student_email, email_students=False, email_params=None):
if PocFutureMembership.objects.filter( if PocFutureMembership.objects.filter(
poc=poc, email=student_email poc=poc, email=student_email
).exists(): ).exists():
PocFutureMembership.get(poc=poc, email=student_email).delete() PocFutureMembership.objects.get(
poc=poc, email=student_email
).delete()
if email_students: if email_students:
email_params['message'] = 'allowed_unenroll' email_params['message'] = 'allowed_unenroll'
email_params['email_address'] = student_email email_params['email_address'] = student_email
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment