feat: adding unenrollments to event bus (#33085)
* feat: adding unenrollments to event bus * fix: quality fixes * fix: tweaks to pass tests * fix: more tweaks for testing --------- Co-authored-by: John Nagro <jnagro@edx.org>
This commit is contained in:
@@ -46,7 +46,7 @@ def on_user_course_unenrollment(enrollment, **kwargs):
|
||||
preference = CourseNotificationPreference.objects.get(user__id=user_id, course_id=course_key)
|
||||
preference.delete()
|
||||
except ObjectDoesNotExist:
|
||||
log.info(f'Notification Preference doesnot exist for {enrollment.user.pii.username} in {course_key}')
|
||||
log.info(f'Notification Preference does not exist for {enrollment.user.pii.username} in {course_key}')
|
||||
|
||||
|
||||
@receiver(USER_NOTIFICATION_REQUESTED)
|
||||
|
||||
Reference in New Issue
Block a user