def METHOD_NAME(sender, **kwargs):
    """
    Assign permissions group to a given ProjectLocale.
    """
    if kwargs["raw"] or not kwargs["created"]:
        return
    instance = kwargs["instance"]
    try:
        assign_group_permissions(
            instance, "translators", ["can_translate_project_locale"]
        )
    except ObjectDoesNotExist as e:
        errors.send_exception(e)