April 30, 2011
My experience with django-mptt
In the past few months, I’ve inherited two projects which used django-mptt, a toolkit for adding trees to Django models. Here’s my experience so far:
mptt is full of magic
That’s both good and bad. Good because it does a lot for you. Bad because it’s difficult to find out what that is. By becoming an MPTTModel you magically get four new database fields, tens of methods, and a whole new manager, grafted on to your model.
The project is making an effort to reduce the magic, for example by switching from signals to method overrides, which simplifies things significantly.

RSS / Atom feed