def on_resource_save(sender, instance, created, user, **kwargs):
    # ActionLog
    context = {'resource': instance}
    object_list = [instance.project, instance]
    if created:
        nt = 'project_resource_added'
        action_logging(user, object_list, nt, context=context)
    else:
        nt = 'project_resource_changed'
        action_logging(user, object_list, nt, context=context)
Called on resource post save and passes a user object in addition to the
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/handlers.py/on_resource_save