Django error object has no attribute 'update'

后端 未结 4 1003
[愿得一人]
[愿得一人] 2020-12-15 04:34

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

4条回答
  •  执念已碎
    2020-12-15 04:49

    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.

提交回复
热议问题