@require_admin
@api_handle_error_with_json
@process_log_from_request
def cancel_update_progress(request, process_log):
 process_log.cancel_requested = True
 process_log.save()
 return JsonResponseMessageSuccess(_('Cancelled update progress successfully.'))

@ require_admin @ api_handle_error_with_json @ process_log_from_request def cancel_update_progress ( request , process_log ) : process_log . cancel_requested = True process_log . save ( ) return JsonResponseMessageSuccess ( _ ( 'Cancelled update progress successfully.' ) )
api endpoint for getting progress data on downloads .