def METHOD_NAME(sender, instance=None, created=False, **kwargs):
    """Sets permissions to users who are owners of the organization."""
    if created:
        for perm in get_perms_for_model(Project):
            assign_perm(perm.codename, instance.organization, instance)
            owners = instance.organization.team_set.filter(
                name=f"{instance.organization.username}#{OWNER_TEAM_NAME}",
                organization=instance.organization,
            )
            for owner in owners:
                assign_perm(perm.codename, owner, instance)
            if owners:
                for user in owners[0].user_set.all():
                    assign_perm(perm.codename, user, instance)
            if instance.created_by:
                assign_perm(perm.codename, instance.created_by, instance)