I spent a lot of time the last two days trying to understand why the tree was not updated correctly after flush, before finding and understanding the paragraph on the mptt_sessionmaker. I changed the docs to make it clearer that this step is mandatory. I also struggled to find out where to apply this wrapper, because we use flask_sqlalchemy for integration with our flask backend, and the Session creation is hidden. So I add also instructions on how to apply mptt_sessionmaker in that case.
I spent a lot of time the last two days trying to understand why the tree was not updated correctly after flush, before finding and understanding the paragraph on the
mptt_sessionmaker
. I changed the docs to make it clearer that this step is mandatory. I also struggled to find out where to apply this wrapper, because we use flask_sqlalchemy for integration with our flask backend, and the Session creation is hidden. So I add also instructions on how to applymptt_sessionmaker
in that case.