Comments on: Using Django-MPTT: lessons learned… http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/ At the core of all well-founded belief lies belief that is unfounded - Wittgenstein Mon, 27 Aug 2012 11:20:27 +0000 hourly 1 https://wordpress.org/?v=5.2.11 By: Kiran Ruth R http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-106 Mon, 27 Aug 2012 11:20:27 +0000 http://magicrebirth.wordpress.com/?p=318#comment-106 Thanks a ton !

]]>
By: mike http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-105 Thu, 04 Nov 2010 17:16:17 +0000 http://magicrebirth.wordpress.com/?p=318#comment-105 thanks!

]]>
By: ganbolor http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-104 Sat, 09 Jan 2010 09:44:55 +0000 http://magicrebirth.wordpress.com/?p=318#comment-104 edit !
p1 = PossessionNew(possname=”test11″)
->
p1 = PossessionNew(name=”test11″)

]]>
By: brett http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-103 Wed, 21 Oct 2009 20:00:44 +0000 http://magicrebirth.wordpress.com/?p=318#comment-103 thank you! i made this exact same mistake and it bit me in the ass. Now i know. The docs aren’t very clear on this part:

always use insert_at or move_to!

]]>
By: mike http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-102 Thu, 08 Oct 2009 13:58:21 +0000 http://magicrebirth.wordpress.com/?p=318#comment-102 Great info here on mptt! This is the only example I can recall seeing where someone showed an actual real world model using mptt. In your example, would not one also need to update the parent attribute as well after using move_to so that both methods would work afterward? Maybe something could be added to the model to automatically do move_to if the parent object changes…

]]>
By: magicrebirth http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-101 Mon, 05 Oct 2009 10:28:54 +0000 http://magicrebirth.wordpress.com/?p=318#comment-101 hi phoebe – no I didn’t do much experimentation with that, although I noticed that normal inheritance didn’t work. I suppose that’s because the ‘lft’, ‘rgt’ fields (and the other ones MPTT creates by default for managing the hierarchy) are being created only in the superclasses… maybe the other django-tree framework does better in this respect [http://code.google.com/p/django-treebeard/] ?
Let me know how it goes!

]]>
By: Phoebe Bright http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-100 Mon, 05 Oct 2009 09:20:35 +0000 http://magicrebirth.wordpress.com/?p=318#comment-100 Just wondered if you had experimented with mptt and inherited models. Havn’t been able to get it working myself and looking around to see if anyone else has.
Abstract inheritance will work only if you want the child classes to only have parents in the same child class. Non-abstract inheritance doesn’t work at all.

This is where I got to:
http://groups.google.com/group/django-users/browse_thread/thread/777c903177d09970#

]]>
By: Phoebe Bright http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-99 Tue, 29 Sep 2009 19:59:21 +0000 http://magicrebirth.wordpress.com/?p=318#comment-99 Thanks for that. Just starting with mptt and I think you saved me from a lot of frustration!

]]>
By: magicrebirth http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-98 Mon, 28 Sep 2009 10:59:47 +0000 http://magicrebirth.wordpress.com/?p=318#comment-98 cool!

]]>
By: Computers & Tech http://www.michelepasin.org/blog/2009/09/15/using-django-mptt-lessons-learned/comment-page-1/#comment-97 Sat, 19 Sep 2009 06:10:34 +0000 http://magicrebirth.wordpress.com/?p=318#comment-97 Hey there,
Great site, I just found it and I am already a fan.

]]>