Currently Task.batch_wait() returns newly created Task objects (because it goes through ListableResource.list() which exclusively takes pk as argument (and recreates new objects).
I would have expected that my initial Task objects would be directly refreshed by batch_wait().
Solution: make ListableResource.list() also accept class objects, in addition to the current pk, and use that in batch_wait().
Currently
Task.batch_wait()
returns newly createdTask
objects (because it goes throughListableResource.list()
which exclusively takespk
as argument (and recreates new objects).I would have expected that my initial
Task
objects would be directly refreshed bybatch_wait()
.Solution: make
ListableResource.list()
also accept class objects, in addition to the currentpk
, and use that inbatch_wait()
.This would be a breaking change but that's OK.