def post_handler(sender, request=None, resource=None, language=None,
    user=None, instance=None, **kwargs):
    if 'lock_extend' in request.POST and request.POST['lock_extend']:
        if user:
            Lock.objects.create_update(resource, language, user).expires
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/locks/handlers.py/post_handler/original