divio/django-cms — pull request #1492 by BertrandBordage (2012-10-24 11:21:56+00:00)
Title: Uses mptt.managers.TreeManager as a base manager.

As I was trying to rebuild my `Page`s (which are pretty broken, since mptt sends me errors while trying to move some of them) using `mptt.managers.TreeManager.rebuild`, I realised `Page.objects` was not deriving from `TreeManager`.

This pull request tries to fix this lack, but I am not sure it will be properly able to rebuild the nodes (`Page` is such a complex model…). Doing a rebuild only partially fixed my problem, so that I can't be sure of its effects. While moving pages, I still get some `Out of range value for column 'lft'`, but other problems like `A node may not be made a sibling of any of its descendants.` have disappeared.

Tests with this pull request: 101 failures, 523 errors.
Tests without this pull request: 101 failures, 523 errors.