@receiver(post_save, sender=EnterpriseCustomerUser)<EOL>def assign_enterprise_learner_role(sender, instance, **kwargs):     
if kwargs['<STR_LIT>'] and instance.user:<EOL><INDENT>enterprise_learner_role, __ = SystemWideEnterpriseRole.objects.get_or_create(name=ENTERPRISE_LEARNER_ROLE)<EOL>SystemWideEnterpriseUserRoleAssignment.objects.get_or_create(<EOL>user=instance.user,<EOL>role=enterprise_learner_role<EOL>)<EOL><DEDENT>
Assign an enterprise learner role to EnterpriseCustomerUser whenever a new record is created.