@receiver(post_delete, sender=EnterpriseCustomerUser)<EOL>def delete_enterprise_learner_role_assignment(sender, instance, **kwargs):     
if instance.user:<EOL><INDENT>enterprise_learner_role, __ = SystemWideEnterpriseRole.objects.get_or_create(name=ENTERPRISE_LEARNER_ROLE)<EOL>try:<EOL><INDENT>SystemWideEnterpriseUserRoleAssignment.objects.get(<EOL>user=instance.user,<EOL>role=enterprise_learner_role<EOL>).delete()<EOL><DEDENT>except SystemWideEnterpriseUserRoleAssignment.DoesNotExist:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Delete the associated enterprise learner role assignment record when deleting an EnterpriseCustomerUser record.