Closed fayazkhan closed 9 years ago
Thank you for your issue, it,s very similar to #30
I'll add a check tree_id
in after_flush_post_exec
Shouldn't all the children also be expired there? Something similar to what you're doing for the parents?
All the children expired with parent after flush. See example https://github.com/ITCase/sqlalchemy_mptt/commit/62779c9e9cc076143ed284ef6a2df547aff19279
I created a new branch path-33
for this issue, until I can not pass this test https://github.com/ITCase/sqlalchemy_mptt/blob/path-33/sqlalchemy_mptt/tests/tree_testing_base.py#L1732
This test currently fails.
Expiring the node solves the problem. So shouldn't the
after_flush_post_exec
listener be expiring those attributes too? A simpler solution would be to update those values frommptt_before_update
.