uralbash / sqlalchemy_mptt

SQLAlchemy nested sets mixin (MPTT)
http://sqlalchemy-mptt.readthedocs.io
MIT License
196 stars 32 forks source link

Improve docs on setup #60

Closed antoine-gallix closed 5 years ago

antoine-gallix commented 5 years ago

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.

uralbash commented 5 years ago

Many Thanks! I hope now it will be clearer to users.