Closed emilmelnikov closed 4 years ago
Great!
There is a problem though we use filter(...).update(...)
invocation for state transitions. This won't call save method leaving finished and updated fields not populated.
We discussed it with @Tomaz-Vieira and the idea is to move state transitions to a custom model.Manager
which will ensure we have our state machine in one place and everything uses the same pattern. filter(status=..., pk=...).update(status=new_status)
and check number of matched rows.
Other changes:
Closes https://github.com/ilastik/cloud_ilastik/issues/44.