In the sort_tree method there's a TODO: "Check if instances exist in DB and is not deleted."
There is the possibility that the instances are already guaranteed to exist due to being found by the filter in the new system.
That really only leaves the question if any cached models that are marked for deletion may be found, or something along those lines.
We should take a look at the extended_database.py and the database_reader.py to see how the filter acts precisely. If the filter doesn't guarantee existance, that should be fixed, either in the mixin, or maybe better even, in the filter function. If everything's fine, the TODO can be deleted and this issue closed.
In the
sort_treemethod there's a TODO: "Check if instances exist in DB and is not deleted."There is the possibility that the instances are already guaranteed to exist due to being found by the filter in the new system.
That really only leaves the question if any cached models that are marked for deletion may be found, or something along those lines.
We should take a look at the
extended_database.pyand thedatabase_reader.pyto see how the filter acts precisely. If the filter doesn't guarantee existance, that should be fixed, either in the mixin, or maybe better even, in the filter function. If everything's fine, the TODO can be deleted and this issue closed.