UPDATE
I was doing some maintenance on the server and rebooted... once it came back the code worked just fine... which actually makes me to worry ju
I didn't went through all your code, but this line:
infoarchivo2 = archivo.objects.filter(archivo_id = procesar)
does not return an instance or object from the database, it returns a Queryset, even when the Queryset just has one element. You would have to iterate the Queryset oy perhaps change the method filter for get.
As long as the method update, I don't think it's implemented.