Issue 56: shortened the register function: now adds the mptt methods automatically.
Status:  WontFix
Owner: ----
Closed:  Sep 2010
Reported by Tyrion...@gmail.com, Jul 12, 2009
The register function in mptt/__init__.py adds all the methods contained in
mptt.models to the model being registered. I've made this process
automatic, using vars(mptt.models). I've also run the tests, they passed all.
I am attaching a patch hoping someone will check it out :)
patch.diff
1.3 KB   View   Download
Sep 3, 2010
Project Member #1 craig.ds@gmail.com
Thanks for the patch, but this reduces the visibility of whats happening somewhat - simply grepping the function name will no longer tell you where it's being added to the model.
Status: WontFix