def METHOD_NAME(sender, **kwargs):
    """
    Before project is deleted, aggregate stats for all project locales.
    """
    project = kwargs.get("instance", None)
    if project is not None:
        for locale in project.locales.all():
            locale.aggregate_stats()